Faker
  • Quick start
  • Guide
    • Providers
      • SSN
      • Base
      • Address
      • Company
      • Datetime
      • Internet
      • Lorem
      • Phone number
      • Miscellaneous
      • Color
      • Credit card
      • File
      • Person
      • User agent
    • Localization
    • Randomness seed
    • Generator
  • Github
  • Website
  • Sponsor this project
Powered by GitBook
On this page

Was this helpful?

Edit on Git
  1. Guide
  2. Providers

Color

All parameters are optional. The sample parameters are the default values used by each function.

Faker.color_name()
=> YellowGreen


Faker.safe_color_name()
=> lime


Faker.hex_color()
=> #DDA0DD


Faker.rgb_color_list()
=> (45,178,72)


Faker.rgb_color()
=> 12,158,151


Faker.rgb_css_color()
=> rgb(73,15,20)
PreviousMiscellaneousNextCredit card

Last updated 4 years ago

Was this helpful?