#CDC398#CDC398
#CDC398 is a light, muted yellow. Relative luminance 0.543; OKLCH L 81.5% C 0.058 H 96.5°. Best body text is #000000 at 11.86:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC398 |
|---|---|
| RGB | rgb(205, 195, 152) |
| HSL | hsl(49, 35%, 70%) |
| HSV | hsv(49, 26%, 80%) |
| CMYK | cmyk(0%, 4.9%, 25.9%, 19.6%) |
| CIE-LAB | lab(78.62, -3.27, 22.92) |
| CIE-LCH | lch(78.62, 23.15, 98.11°) |
| OKLab | oklab(81.46% -0.0066 0.0581) |
| OKLCH | oklch(81.46% 0.058 96.5) |
| XYZ | xyz(50.3596, 54.2774, 37.5234) |
| Luminance | 0.5428 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand
#C2B280
ΔE00 5.04
Beige (survey)
#E6DAA6
ΔE00 5.89
Putty
#BEAE8A
ΔE00 6.22
Very Light Brown
#D3B683
ΔE00 7.02
Khaki
#C3B091
ΔE00 7.33
Sandstone
#C9AE74
ΔE00 7.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC398 #98A2CD
analogous
#CDA898 #CDC398 #BDCD98
triadic
#CDC398 #98CDC3 #C398CD
tetradic
#CDC398 #98CDA8 #98A2CD #CD98BD
square
#CDC398 #98CDA8 #98A2CD #CD98BD
split-complementary
#CDC398 #98BDCD #A898CD
monochromatic
#9E8F4D #B9AB6F #CDC398 #E1DBC1 #F5F3EA
Accessibility & contrast
On white
1.77
#CDC398 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.86
#CDC398 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC398
11.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC398 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC398 | 1.00 | 1.77 | 11.86 | 11.86 |
| #FFFFFF | 1.77 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CCC095
Deuteranopia (green-blind)
#CFC499
Tritanopia (blue-blind)
#D5BDB7
Achromatopsia (no color)
#C3C3C3
Design tokens & code
CSS
--color: #cdc398; /* rgb */ color: rgb(205, 195, 152); /* oklch */ color: oklch(81.5% 0.058 96.5);
Tailwind
colors: {
custom: {
50: '#dcd5b6',
500: '#cdc398',
950: '#000000',
},
}SCSS
$custom: #cdc398; $custom-light: #dcd5b6; $custom-dark: #000000;
JSON
{
"hex": "#cdc398",
"rgb": {
"r": 205,
"g": 195,
"b": 152
},
"hsl": {
"h": 48.679,
"s": 34.641,
"l": 70
},
"oklch": {
"l": 0.81459,
"c": 0.05849,
"h": 96.5
},
"luminance": 0.54276
}Semantic roles & 50–950 ramp
primary
#CDC398
secondary
#6772A2
accent
#4EAD38
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151411
muted
#848381