#CDC766#CDC766
#CDC766 is a light, moderate yellow. Relative luminance 0.548; OKLCH L 81.4% C 0.120 H 105.6°. Best body text is #000000 at 11.96:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC766 |
|---|---|
| RGB | rgb(205, 199, 102) |
| HSL | hsl(57, 51%, 60%) |
| HSV | hsv(57, 50%, 80%) |
| CMYK | cmyk(0%, 2.9%, 50.2%, 19.6%) |
| CIE-LAB | lab(78.92, -10.96, 48.81) |
| CIE-LCH | lch(78.92, 50.03, 102.65°) |
| OKLab | oklab(81.45% -0.0322 0.1154) |
| OKLCH | oklch(81.45% 0.12 105.6) |
| XYZ | xyz(47.9998, 54.7867, 20.6142) |
| Luminance | 0.5478 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Greenish Beige
#C9D179
ΔE00 4.62
Darkkhaki
#BDB76B
ΔE00 5.13
Sand (survey)
#E2CA76
ΔE00 5.82
Greenish Tan
#BCCB7A
ΔE00 6.51
Sandy
#F1DA7A
ΔE00 7.06
Dull Yellow
#EEDC5B
ΔE00 7.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC766 #666CCD
analogous
#CD9466 #CDC766 #9FCD66
triadic
#CDC766 #66CDC7 #C766CD
tetradic
#CDC766 #66CD94 #666CCD #CD669F
square
#CDC766 #66CD94 #666CCD #CD669F
split-complementary
#CDC766 #669FCD #9466CD
monochromatic
#8B862D #B9B23D #CDC766 #DCD894 #EBE9C2
Accessibility & contrast
On white
1.76
#CDC766 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.96
#CDC766 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC766
11.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC766 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC766 | 1.00 | 1.76 | 11.96 | 11.96 |
| #FFFFFF | 1.76 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.96 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.96 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D5C15D
Deuteranopia (green-blind)
#D8C56B
Tritanopia (blue-blind)
#DABCB1
Achromatopsia (no color)
#C3C3C3
Design tokens & code
CSS
--color: #cdc766; /* rgb */ color: rgb(205, 199, 102); /* oklch */ color: oklch(81.4% 0.120 105.6);
Tailwind
colors: {
custom: {
50: '#ded794',
500: '#cdc766',
950: '#000000',
},
}SCSS
$custom: #cdc766; $custom-light: #ded794; $custom-dark: #000000;
JSON
{
"hex": "#cdc766",
"rgb": {
"r": 205,
"g": 199,
"b": 102
},
"hsl": {
"h": 56.505,
"s": 50.739,
"l": 60.196
},
"oklch": {
"l": 0.81446,
"c": 0.11978,
"h": 105.6
},
"luminance": 0.54785
}Semantic roles & 50–950 ramp
primary
#CDC766
secondary
#454A92
accent
#30BE27
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F