Skip to content

What determins a luminosity of "Bright" #118

@Xliff

Description

@Xliff

@davidmerfield -- How are you defining "Bright" colors for RandomColor? I am attempting to write a numerical test for "bright" colors, and am wondering how it is defined in generation. From what I can see, it looks like the minumum saturation should be 55, however I can use this piece of code:

console.log(
  randomColor({
    seed: 2019021101,
    luminosity: 'bright',
    count: 5,
    format: 'hslArray'
  })
);

And the first color I get turns out to be [ 191, 53.43, 54.905 ], which has an S value lower than that. Can you please clarify?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions