#CDCD97#CDCD97

#CDCD97 is a very light, moderate yellow. Relative luminance 0.589; OKLCH L 83.5% C 0.071 H 107.9°. Best body text is #000000 at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#CDCD97
RGBrgb(205, 205, 151)
HSLhsl(60, 35%, 70%)
HSVhsv(60, 26%, 80%)
CMYKcmyk(0%, 0%, 26.3%, 19.6%)
CIE-LABlab(81.22, -8.58, 26.98)
CIE-LCHlch(81.22, 28.31, 107.64°)
OKLaboklab(83.51% -0.0219 0.0679)
OKLCHoklch(83.51% 0.071 107.9)
XYZxyz(52.5941, 58.8769, 37.8659)
Luminance0.5888 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD97 #9797CD
analogous
#CDB297 #CDCD97 #B2CD97
triadic
#CDCD97 #97CDCD #CD97CD
tetradic
#CDCD97 #97CDB2 #9797CD #CD97B2
square
#CDCD97 #97CDB2 #9797CD #CD97B2
split-complementary
#CDCD97 #97B2CD #B297CD
monochromatic
#9E9E4C #B9B96E #CDCD97 #E1E1C0 #F5F5EA

Accessibility & contrast

On white

1.64
#CDCD97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.78
#CDCD97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD97
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD97#FFFFFF#000000##000000
##CDCD971.001.6412.7812.78
#FFFFFF1.641.0021.0021.00
#00000012.7821.001.001.00
##00000012.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C893
Deuteranopia (green-blind)
#D7CB99
Tritanopia (blue-blind)
#D5C6BF
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #cdcd97;
/* rgb */ color: rgb(205, 205, 151);
/* oklch */ color: oklch(83.5% 0.071 107.9);
Tailwind
colors: {
  custom: {
    50: '#dddcb6',
    500: '#cdcd97',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd97;
$custom-light: #dddcb6;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd97",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 151
  },
  "hsl": {
    "h": 60,
    "s": 35.065,
    "l": 69.804
  },
  "oklch": {
    "l": 0.8351,
    "c": 0.07131,
    "h": 107.9
  },
  "luminance": 0.58876
}

Semantic roles & 50–950 ramp

primary
#CDCD97
secondary
#6666A2
accent
#38AE38
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151511
muted
#848481

Preview Lab

Preview with #CDCD97

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CDCD97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva