#CDC762#CDC762
#CDC762 is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.4% C 0.124 H 105.8°. Best body text is #000000 at 11.94:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC762 |
|---|---|
| RGB | rgb(205, 199, 98) |
| HSL | hsl(57, 52%, 59%) |
| HSV | hsv(57, 52%, 80%) |
| CMYK | cmyk(0%, 2.9%, 52.2%, 19.6%) |
| CIE-LAB | lab(78.87, -11.30, 50.66) |
| CIE-LCH | lch(78.87, 51.90, 102.58°) |
| OKLab | oklab(81.4% -0.0336 0.119) |
| OKLCH | oklch(81.4% 0.124 105.8) |
| XYZ | xyz(47.8062, 54.7092, 19.5946) |
| Luminance | 0.5471 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Greenish Beige
#C9D179
ΔE00 4.92
Darkkhaki
#BDB76B
ΔE00 5.48
Sand (survey)
#E2CA76
ΔE00 6.03
Greenish Tan
#BCCB7A
ΔE00 6.84
Vomit Yellow
#C7C10C
ΔE00 6.85
Puke Yellow
#C2BE0E
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC762 #6268CD
analogous
#CD9262 #CDC762 #9DCD62
triadic
#CDC762 #62CDC7 #C762CD
tetradic
#CDC762 #62CD92 #6268CD #CD629D
square
#CDC762 #62CD92 #6268CD #CD629D
split-complementary
#CDC762 #629DCD #9262CD
monochromatic
#89842C #B7B03A #CDC762 #DCD890 #EBE8BF
Accessibility & contrast
On white
1.76
#CDC762 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.94
#CDC762 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC762
11.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC762 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC762 | 1.00 | 1.76 | 11.94 | 11.94 |
| #FFFFFF | 1.76 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D6C158
Deuteranopia (green-blind)
#D8C567
Tritanopia (blue-blind)
#DABCB0
Achromatopsia (no color)
#C3C3C3
Design tokens & code
CSS
--color: #cdc762; /* rgb */ color: rgb(205, 199, 98); /* oklch */ color: oklch(81.4% 0.124 105.8);
Tailwind
colors: {
custom: {
50: '#ded791',
500: '#cdc762',
950: '#000000',
},
}SCSS
$custom: #cdc762; $custom-light: #ded791; $custom-dark: #000000;
JSON
{
"hex": "#cdc762",
"rgb": {
"r": 205,
"g": 199,
"b": 98
},
"hsl": {
"h": 56.636,
"s": 51.691,
"l": 59.412
},
"oklch": {
"l": 0.81396,
"c": 0.12367,
"h": 105.8
},
"luminance": 0.54708
}Semantic roles & 50–950 ramp
primary
#CDC762
secondary
#434890
accent
#55DB4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F