#CFC852#CFC852
#CFC852 is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.6% C 0.139 H 105.9°. Best body text is #000000 at 12.04:1 contrast (WCAG AA passes).
Color values
| HEX | #CFC852 |
|---|---|
| RGB | rgb(207, 200, 82) |
| HSL | hsl(57, 57%, 57%) |
| HSV | hsv(57, 60%, 81%) |
| CMYK | cmyk(0%, 3.4%, 60.4%, 18.8%) |
| CIE-LAB | lab(79.15, -12.19, 58.27) |
| CIE-LCH | lch(79.15, 59.53, 101.82°) |
| OKLab | oklab(81.6% -0.038 0.1334) |
| OKLCH | oklch(81.6% 0.139 105.9) |
| XYZ | xyz(47.9110, 55.1847, 16.1090) |
| Luminance | 0.5518 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit Yellow
#C7C10C
ΔE00 4.86
Dirty Yellow
#CDC50A
ΔE00 4.89
Puke Yellow
#C2BE0E
ΔE00 5.05
Ugly Yellow
#D0C101
ΔE00 5.57
Dull Yellow
#EEDC5B
ΔE00 6.01
Olive Yellow
#C2B709
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFC852 #5259CF
analogous
#CF8A52 #CFC852 #98CF52
triadic
#CFC852 #52CFC8 #C852CF
tetradic
#CFC852 #52CF8A #5259CF #CF5298
square
#CFC852 #52CF8A #5259CF #CF5298
split-complementary
#CFC852 #5298CF #8A52CF
monochromatic
#827D24 #B2AB31 #CFC852 #DCD782 #EAE6B2
Accessibility & contrast
On white
1.74
#CFC852 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.04
#CFC852 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFC852
12.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFC852 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFC852 | 1.00 | 1.74 | 12.04 | 12.04 |
| #FFFFFF | 1.74 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D8C144
Deuteranopia (green-blind)
#DBC659
Tritanopia (blue-blind)
#DDBCAF
Achromatopsia (no color)
#C4C4C4
Design tokens & code
CSS
--color: #cfc852; /* rgb */ color: rgb(207, 200, 82); /* oklch */ color: oklch(81.6% 0.139 105.9);
Tailwind
colors: {
custom: {
50: '#e0d887',
500: '#cfc852',
950: '#000000',
},
}SCSS
$custom: #cfc852; $custom-light: #e0d887; $custom-dark: #000000;
JSON
{
"hex": "#cfc852",
"rgb": {
"r": 207,
"g": 200,
"b": 82
},
"hsl": {
"h": 56.64,
"s": 56.561,
"l": 56.667
},
"oklch": {
"l": 0.81603,
"c": 0.13873,
"h": 105.9
},
"luminance": 0.55183
}Semantic roles & 50–950 ramp
primary
#CFC852
secondary
#3C408A
accent
#50E048
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F