#CFC152#CFC152
#CFC152 is a light, vivid yellow. Relative luminance 0.520; OKLCH L 80.1% C 0.132 H 102.2°. Best body text is #000000 at 11.40:1 contrast (WCAG AA passes).
Color values
| HEX | #CFC152 |
|---|---|
| RGB | rgb(207, 193, 82) |
| HSL | hsl(53, 57%, 57%) |
| HSV | hsv(53, 60%, 81%) |
| CMYK | cmyk(0%, 6.8%, 60.4%, 18.8%) |
| CIE-LAB | lab(77.29, -8.62, 56.24) |
| CIE-LCH | lch(77.29, 56.89, 98.72°) |
| OKLab | oklab(80.13% -0.0278 0.1291) |
| OKLCH | oklch(80.13% 0.132 102.2) |
| XYZ | xyz(46.3268, 52.0163, 15.5809) |
| Luminance | 0.5202 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit Yellow
#C7C10C
ΔE00 5.37
Mustard Yellow
#D2BD0A
ΔE00 5.41
Ugly Yellow
#D0C101
ΔE00 5.42
Olive Yellow
#C2B709
ΔE00 5.43
Puke Yellow
#C2BE0E
ΔE00 5.46
Dirty Yellow
#CDC50A
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFC152 #5260CF
analogous
#CF8352 #CFC152 #9FCF52
triadic
#CFC152 #52CFC1 #C152CF
tetradic
#CFC152 #52CF83 #5260CF #CF529F
square
#CFC152 #52CF83 #5260CF #CF529F
split-complementary
#CFC152 #529FCF #8352CF
monochromatic
#827824 #B2A431 #CFC152 #DCD282 #EAE3B2
Accessibility & contrast
On white
1.84
#CFC152 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.40
#CFC152 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFC152
11.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFC152 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFC152 | 1.00 | 1.84 | 11.40 | 11.40 |
| #FFFFFF | 1.84 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.40 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.40 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D1BB46
Deuteranopia (green-blind)
#D6C258
Tritanopia (blue-blind)
#DEB5A9
Achromatopsia (no color)
#BFBFBF
Design tokens & code
CSS
--color: #cfc152; /* rgb */ color: rgb(207, 193, 82); /* oklch */ color: oklch(80.1% 0.132 102.2);
Tailwind
colors: {
custom: {
50: '#e0d387',
500: '#cfc152',
950: '#000000',
},
}SCSS
$custom: #cfc152; $custom-light: #e0d387; $custom-dark: #000000;
JSON
{
"hex": "#cfc152",
"rgb": {
"r": 207,
"g": 193,
"b": 82
},
"hsl": {
"h": 53.28,
"s": 56.561,
"l": 56.667
},
"oklch": {
"l": 0.80127,
"c": 0.13207,
"h": 102.2
},
"luminance": 0.52015
}Semantic roles & 50–950 ramp
primary
#CFC152
secondary
#3C448A
accent
#59E048
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F