#CDC871#CDC871
#CDC871 is a light, moderate yellow. Relative luminance 0.555; OKLCH L 81.8% C 0.110 H 105.7°. Best body text is #000000 at 12.10:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC871 |
|---|---|
| RGB | rgb(205, 200, 113) |
| HSL | hsl(57, 48%, 62%) |
| HSV | hsv(57, 45%, 80%) |
| CMYK | cmyk(0%, 2.4%, 44.9%, 19.6%) |
| CIE-LAB | lab(79.32, -10.44, 43.94) |
| CIE-LCH | lch(79.32, 45.16, 103.37°) |
| OKLab | oklab(81.81% -0.0296 0.1055) |
| OKLCH | oklch(81.81% 0.11 105.7) |
| XYZ | xyz(48.8128, 55.4812, 23.7572) |
| Luminance | 0.5548 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Greenish Beige
#C9D179
ΔE00 3.82
Darkkhaki
#BDB76B
ΔE00 4.60
Greenish Tan
#BCCB7A
ΔE00 5.57
Sand (survey)
#E2CA76
ΔE00 5.69
Pale Olive
#B9CC81
ΔE00 7.02
Sandy
#F1DA7A
ΔE00 7.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC871 #7176CD
analogous
#CD9A71 #CDC871 #A4CD71
triadic
#CDC871 #71CDC8 #C871CD
tetradic
#CDC871 #71CD9A #7176CD #CD71A4
square
#CDC871 #71CD9A #7176CD #CD71A4
split-complementary
#CDC871 #71A4CD #9A71CD
monochromatic
#918C33 #BDB644 #CDC871 #DDDA9E #EDEBCC
Accessibility & contrast
On white
1.74
#CDC871 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.10
#CDC871 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC871
12.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC871 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC871 | 1.00 | 1.74 | 12.10 | 12.10 |
| #FFFFFF | 1.74 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D5C26A
Deuteranopia (green-blind)
#D8C675
Tritanopia (blue-blind)
#D9BEB3
Achromatopsia (no color)
#C4C4C4
Design tokens & code
CSS
--color: #cdc871; /* rgb */ color: rgb(205, 200, 113); /* oklch */ color: oklch(81.8% 0.110 105.7);
Tailwind
colors: {
custom: {
50: '#ded89b',
500: '#cdc871',
950: '#000000',
},
}SCSS
$custom: #cdc871; $custom-light: #ded89b; $custom-dark: #000000;
JSON
{
"hex": "#cdc871",
"rgb": {
"r": 205,
"g": 200,
"b": 113
},
"hsl": {
"h": 56.739,
"s": 47.917,
"l": 62.353
},
"oklch": {
"l": 0.81807,
"c": 0.10959,
"h": 105.7
},
"luminance": 0.5548
}Semantic roles & 50–950 ramp
primary
#CDC871
secondary
#4B4F97
accent
#32BB2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F