#CDC968#CDC968
#CDC968 is a light, moderate yellow. Relative luminance 0.558; OKLCH L 81.9% C 0.120 H 106.7°. Best body text is #000000 at 12.15:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC968 |
|---|---|
| RGB | rgb(205, 201, 104) |
| HSL | hsl(58, 50%, 61%) |
| HSV | hsv(58, 49%, 80%) |
| CMYK | cmyk(0%, 2%, 49.3%, 19.6%) |
| CIE-LAB | lab(79.47, -11.80, 48.51) |
| CIE-LCH | lch(79.47, 49.93, 103.67°) |
| OKLab | oklab(81.9% -0.0344 0.1149) |
| OKLCH | oklch(81.9% 0.12 106.7) |
| XYZ | xyz(48.5634, 55.7532, 21.2973) |
| Luminance | 0.5575 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Greenish Beige
#C9D179
ΔE00 3.99
Darkkhaki
#BDB76B
ΔE00 5.45
Greenish Tan
#BCCB7A
ΔE00 6.01
Sand (survey)
#E2CA76
ΔE00 6.20
Sandy
#F1DA7A
ΔE00 7.14
Khaki (CSS)
#F0E68C
ΔE00 7.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC968 #686CCD
analogous
#CD9668 #CDC968 #9ECD68
triadic
#CDC968 #68CDC9 #C968CD
tetradic
#CDC968 #68CD96 #686CCD #CD689E
square
#CDC968 #68CD96 #686CCD #CD689E
split-complementary
#CDC968 #689ECD #9668CD
monochromatic
#8C882E #BAB53E #CDC968 #DCD996 #EBEAC4
Accessibility & contrast
On white
1.73
#CDC968 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.15
#CDC968 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC968
12.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC968 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC968 | 1.00 | 1.73 | 12.15 | 12.15 |
| #FFFFFF | 1.73 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D7C35F
Deuteranopia (green-blind)
#D9C76D
Tritanopia (blue-blind)
#D9BEB3
Achromatopsia (no color)
#C5C5C5
Design tokens & code
CSS
--color: #cdc968; /* rgb */ color: rgb(205, 201, 104); /* oklch */ color: oklch(81.9% 0.120 106.7);
Tailwind
colors: {
custom: {
50: '#ded995',
500: '#cdc968',
950: '#000000',
},
}SCSS
$custom: #cdc968; $custom-light: #ded995; $custom-dark: #000000;
JSON
{
"hex": "#cdc968",
"rgb": {
"r": 205,
"g": 201,
"b": 104
},
"hsl": {
"h": 57.624,
"s": 50.249,
"l": 60.588
},
"oklch": {
"l": 0.81895,
"c": 0.11994,
"h": 106.7
},
"luminance": 0.55752
}Semantic roles & 50–950 ramp
primary
#CDC968
secondary
#464993
accent
#2EBE28
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F