#CFC157#CFC157
#CFC157 is a light, vivid yellow. Relative luminance 0.521; OKLCH L 80.2% C 0.128 H 101.8°. Best body text is #000000 at 11.42:1 contrast (WCAG AA passes).
Color values
| HEX | #CFC157 |
|---|---|
| RGB | rgb(207, 193, 87) |
| HSL | hsl(53, 56%, 58%) |
| HSV | hsv(53, 58%, 81%) |
| CMYK | cmyk(0%, 6.8%, 58%, 18.8%) |
| CIE-LAB | lab(77.34, -8.27, 54.04) |
| CIE-LCH | lch(77.34, 54.67, 98.70°) |
| OKLab | oklab(80.18% -0.0262 0.1251) |
| OKLCH | oklch(80.18% 0.128 101.8) |
| XYZ | xyz(46.5240, 52.0952, 16.6197) |
| Luminance | 0.5209 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 5.33
Darkkhaki
#BDB76B
ΔE00 5.82
Vomit Yellow
#C7C10C
ΔE00 5.97
Olive Yellow
#C2B709
ΔE00 5.98
Mustard Yellow
#D2BD0A
ΔE00 5.98
Puke Yellow
#C2BE0E
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFC157 #5765CF
analogous
#CF8557 #CFC157 #A1CF57
triadic
#CFC157 #57CFC1 #C157CF
tetradic
#CFC157 #57CF85 #5765CF #CF57A1
square
#CFC157 #57CF85 #5765CF #CF57A1
split-complementary
#CFC157 #57A1CF #8557CF
monochromatic
#857A26 #B5A634 #CFC157 #DDD387 #EAE4B6
Accessibility & contrast
On white
1.84
#CFC157 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.42
#CFC157 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFC157
11.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFC157 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFC157 | 1.00 | 1.84 | 11.42 | 11.42 |
| #FFFFFF | 1.84 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.42 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.42 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D1BC4C
Deuteranopia (green-blind)
#D5C25C
Tritanopia (blue-blind)
#DDB5AA
Achromatopsia (no color)
#BFBFBF
Design tokens & code
CSS
--color: #cfc157; /* rgb */ color: rgb(207, 193, 87); /* oklch */ color: oklch(80.2% 0.128 101.8);
Tailwind
colors: {
custom: {
50: '#e0d38a',
500: '#cfc157',
950: '#000000',
},
}SCSS
$custom: #cfc157; $custom-light: #e0d38a; $custom-dark: #000000;
JSON
{
"hex": "#cfc157",
"rgb": {
"r": 207,
"g": 193,
"b": 87
},
"hsl": {
"h": 53,
"s": 55.556,
"l": 57.647
},
"oklch": {
"l": 0.80179,
"c": 0.12779,
"h": 101.8
},
"luminance": 0.52093
}Semantic roles & 50–950 ramp
primary
#CFC157
secondary
#3E478C
accent
#5ADF49
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F