#CFB252#CFB252
#CFB252 is a light, moderate yellow. Relative luminance 0.457; OKLCH L 77.0% C 0.120 H 92.6°. Best body text is #000000 at 10.14:1 contrast (WCAG AA passes).
Color values
| HEX | #CFB252 |
|---|---|
| RGB | rgb(207, 178, 82) |
| HSL | hsl(46, 57%, 57%) |
| HSV | hsv(46, 60%, 81%) |
| CMYK | cmyk(0%, 14%, 60.4%, 18.8%) |
| CIE-LAB | lab(73.36, -0.82, 51.87) |
| CIE-LCH | lch(73.36, 51.87, 90.90°) |
| OKLab | oklab(77.02% -0.0054 0.1198) |
| OKLCH | oklch(77.02% 0.12 92.6) |
| XYZ | xyz(43.1774, 45.7176, 14.5311) |
| Luminance | 0.4572 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Desert
#CCAD60
ΔE00 3.40
Mustard
#DBB42C
ΔE00 4.85
Tan (survey)
#D1B26F
ΔE00 5.14
Sandy Brown
#C4A661
ΔE00 5.49
Burnt Yellow
#D5AB09
ΔE00 6.17
Brownish Yellow
#C9B003
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFB252 #526FCF
analogous
#CF7452 #CFB252 #AECF52
triadic
#CFB252 #52CFB2 #B252CF
tetradic
#CFB252 #52CF74 #526FCF #CF52AE
square
#CFB252 #52CF74 #526FCF #CF52AE
split-complementary
#CFB252 #52AECF #7452CF
monochromatic
#826D24 #B29431 #CFB252 #DCC782 #EADDB2
Accessibility & contrast
On white
2.07
#CFB252 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.14
#CFB252 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFB252
10.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFB252 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFB252 | 1.00 | 2.07 | 10.14 | 10.14 |
| #FFFFFF | 2.07 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.14 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.14 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AF48
Deuteranopia (green-blind)
#CAB856
Tritanopia (blue-blind)
#DEA59D
Achromatopsia (no color)
#B4B4B4
Design tokens & code
CSS
--color: #cfb252; /* rgb */ color: rgb(207, 178, 82); /* oklch */ color: oklch(77.0% 0.120 92.6);
Tailwind
colors: {
custom: {
50: '#e1c886',
500: '#cfb252',
950: '#000000',
},
}SCSS
$custom: #cfb252; $custom-light: #e1c886; $custom-dark: #000000;
JSON
{
"hex": "#cfb252",
"rgb": {
"r": 207,
"g": 178,
"b": 82
},
"hsl": {
"h": 46.08,
"s": 56.561,
"l": 56.667
},
"oklch": {
"l": 0.77016,
"c": 0.11991,
"h": 92.6
},
"luminance": 0.45715
}Semantic roles & 50–950 ramp
primary
#CFB252
secondary
#A5B1D8
accent
#6BE048
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#16130B
muted
#84827C