#CEC162#CEC162
#CEC162 is a light, moderate yellow. Relative luminance 0.521; OKLCH L 80.2% C 0.118 H 101.6°. Best body text is #000000 at 11.43:1 contrast (WCAG AA passes).
Color values
| HEX | #CEC162 |
|---|---|
| RGB | rgb(206, 193, 98) |
| HSL | hsl(53, 52%, 60%) |
| HSV | hsv(53, 52%, 81%) |
| CMYK | cmyk(0%, 6.3%, 52.4%, 19.2%) |
| CIE-LAB | lab(77.37, -7.82, 48.91) |
| CIE-LCH | lch(77.37, 49.53, 99.08°) |
| OKLab | oklab(80.22% -0.0236 0.1152) |
| OKLCH | oklch(80.22% 0.118 101.6) |
| XYZ | xyz(46.7296, 52.1452, 19.1564) |
| Luminance | 0.5214 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 4.61
Sand (survey)
#E2CA76
ΔE00 4.70
Greenish Beige
#C9D179
ΔE00 6.73
Sandy
#F1DA7A
ΔE00 7.02
Olive Yellow
#C2B709
ΔE00 7.32
Puke Yellow
#C2BE0E
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CEC162 #626FCE
analogous
#CE8B62 #CEC162 #A5CE62
triadic
#CEC162 #62CEC1 #C162CE
tetradic
#CEC162 #62CE8B #626FCE #CE62A5
square
#CEC162 #62CE8B #626FCE #CE62A5
split-complementary
#CEC162 #62A5CE #8B62CE
monochromatic
#8A7F2B #B9AA3A #CEC162 #DDD391 #EBE6BF
Accessibility & contrast
On white
1.84
#CEC162 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.43
#CEC162 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CEC162
11.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CEC162 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CEC162 | 1.00 | 1.84 | 11.43 | 11.43 |
| #FFFFFF | 1.84 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.43 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.43 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D0BC59
Deuteranopia (green-blind)
#D4C266
Tritanopia (blue-blind)
#DCB6AB
Achromatopsia (no color)
#BFBFBF
Design tokens & code
CSS
--color: #cec162; /* rgb */ color: rgb(206, 193, 98); /* oklch */ color: oklch(80.2% 0.118 101.6);
Tailwind
colors: {
custom: {
50: '#dfd391',
500: '#cec162',
950: '#000000',
},
}SCSS
$custom: #cec162; $custom-light: #dfd391; $custom-dark: #000000;
JSON
{
"hex": "#cec162",
"rgb": {
"r": 206,
"g": 193,
"b": 98
},
"hsl": {
"h": 52.778,
"s": 52.427,
"l": 59.608
},
"oklch": {
"l": 0.8022,
"c": 0.11761,
"h": 101.6
},
"luminance": 0.52144
}Semantic roles & 50–950 ramp
primary
#CEC162
secondary
#434D91
accent
#5DDC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F