#CFC162#CFC162
#CFC162 is a light, moderate yellow. Relative luminance 0.523; OKLCH L 80.3% C 0.118 H 101.0°. Best body text is #000000 at 11.46:1 contrast (WCAG AA passes).
Color values
| HEX | #CFC162 |
|---|---|
| RGB | rgb(207, 193, 98) |
| HSL | hsl(52, 53%, 60%) |
| HSV | hsv(52, 53%, 81%) |
| CMYK | cmyk(0%, 6.8%, 52.7%, 18.8%) |
| CIE-LAB | lab(77.45, -7.41, 49.03) |
| CIE-LCH | lch(77.45, 49.59, 98.59°) |
| OKLab | oklab(80.31% -0.0225 0.1155) |
| OKLCH | oklch(80.31% 0.118 101) |
| XYZ | xyz(47.0082, 52.2889, 19.1695) |
| Luminance | 0.5229 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 4.48
Darkkhaki
#BDB76B
ΔE00 4.77
Sandy
#F1DA7A
ΔE00 6.87
Greenish Beige
#C9D179
ΔE00 6.95
Olive Yellow
#C2B709
ΔE00 7.34
Mustard Yellow
#D2BD0A
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFC162 #6270CF
analogous
#CF8B62 #CFC162 #A6CF62
triadic
#CFC162 #62CFC1 #C162CF
tetradic
#CFC162 #62CF8B #6270CF #CF62A6
square
#CFC162 #62CF8B #6270CF #CF62A6
split-complementary
#CFC162 #62A6CF #8B62CF
monochromatic
#8C7F2B #BBAA39 #CFC162 #DDD491 #ECE6C0
Accessibility & contrast
On white
1.83
#CFC162 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.46
#CFC162 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFC162
11.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFC162 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFC162 | 1.00 | 1.83 | 11.46 | 11.46 |
| #FFFFFF | 1.83 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.46 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.46 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D0BC59
Deuteranopia (green-blind)
#D4C266
Tritanopia (blue-blind)
#DDB6AB
Achromatopsia (no color)
#BFBFBF
Design tokens & code
CSS
--color: #cfc162; /* rgb */ color: rgb(207, 193, 98); /* oklch */ color: oklch(80.3% 0.118 101.0);
Tailwind
colors: {
custom: {
50: '#e0d391',
500: '#cfc162',
950: '#000000',
},
}SCSS
$custom: #cfc162; $custom-light: #e0d391; $custom-dark: #000000;
JSON
{
"hex": "#cfc162",
"rgb": {
"r": 207,
"g": 193,
"b": 98
},
"hsl": {
"h": 52.294,
"s": 53.171,
"l": 59.804
},
"oklch": {
"l": 0.80308,
"c": 0.11764,
"h": 101
},
"luminance": 0.52287
}Semantic roles & 50–950 ramp
primary
#CFC162
secondary
#434D92
accent
#5EDD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F