#CFC252#CFC252
#CFC252 is a light, vivid yellow. Relative luminance 0.525; OKLCH L 80.3% C 0.133 H 102.7°. Best body text is #000000 at 11.49:1 contrast (WCAG AA passes).
Color values
| HEX | #CFC252 |
|---|---|
| RGB | rgb(207, 194, 82) |
| HSL | hsl(54, 57%, 57%) |
| HSV | hsv(54, 60%, 81%) |
| CMYK | cmyk(0%, 6.3%, 60.4%, 18.8%) |
| CIE-LAB | lab(77.56, -9.14, 56.53) |
| CIE-LCH | lch(77.56, 57.26, 99.18°) |
| OKLab | oklab(80.34% -0.0293 0.1297) |
| OKLCH | oklch(80.34% 0.133 102.7) |
| XYZ | xyz(46.5486, 52.4599, 15.6548) |
| Luminance | 0.5246 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit Yellow
#C7C10C
ΔE00 5.22
Puke Yellow
#C2BE0E
ΔE00 5.33
Ugly Yellow
#D0C101
ΔE00 5.37
Dirty Yellow
#CDC50A
ΔE00 5.38
Olive Yellow
#C2B709
ΔE00 5.45
Mustard Yellow
#D2BD0A
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFC252 #525FCF
analogous
#CF8452 #CFC252 #9ECF52
triadic
#CFC252 #52CFC2 #C252CF
tetradic
#CFC252 #52CF84 #525FCF #CF529E
square
#CFC252 #52CF84 #525FCF #CF529E
split-complementary
#CFC252 #529ECF #8452CF
monochromatic
#827924 #B2A531 #CFC252 #DCD382 #EAE4B2
Accessibility & contrast
On white
1.83
#CFC252 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.49
#CFC252 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFC252
11.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFC252 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFC252 | 1.00 | 1.83 | 11.49 | 11.49 |
| #FFFFFF | 1.83 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.49 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.49 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D2BC46
Deuteranopia (green-blind)
#D6C258
Tritanopia (blue-blind)
#DEB6AA
Achromatopsia (no color)
#C0C0C0
Design tokens & code
CSS
--color: #cfc252; /* rgb */ color: rgb(207, 194, 82); /* oklch */ color: oklch(80.3% 0.133 102.7);
Tailwind
colors: {
custom: {
50: '#e0d487',
500: '#cfc252',
950: '#000000',
},
}SCSS
$custom: #cfc252; $custom-light: #e0d487; $custom-dark: #000000;
JSON
{
"hex": "#cfc252",
"rgb": {
"r": 207,
"g": 194,
"b": 82
},
"hsl": {
"h": 53.76,
"s": 56.561,
"l": 56.667
},
"oklch": {
"l": 0.80337,
"c": 0.13299,
"h": 102.7
},
"luminance": 0.52458
}Semantic roles & 50–950 ramp
primary
#CFC252
secondary
#3C448A
accent
#58E048
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F