#CDCD8C#CDCD8C

#CDCD8C is a very light, moderate yellow. Relative luminance 0.585; OKLCH L 83.3% C 0.085 H 108.1°. Best body text is #000000 at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#CDCD8C
RGBrgb(205, 205, 140)
HSLhsl(60, 39%, 68%)
HSVhsv(60, 32%, 80%)
CMYKcmyk(0%, 0%, 31.7%, 19.6%)
CIE-LABlab(81.04, -10.00, 32.45)
CIE-LCHlch(81.04, 33.95, 107.12°)
OKLaboklab(83.3% -0.0263 0.0806)
OKLCHoklch(83.3% 0.085 108.1)
XYZxyz(51.7421, 58.5361, 33.3787)
Luminance0.5854 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD8C #8C8CCD
analogous
#CDAC8C #CDCD8C #ACCD8C
triadic
#CDCD8C #8CCDCD #CD8CCD
tetradic
#CDCD8C #8CCDAC #8C8CCD #CD8CAC
square
#CDCD8C #8CCDAC #8C8CCD #CD8CAC
split-complementary
#CDCD8C #8CACCD #AC8CCD
monochromatic
#9B9B43 #BABA61 #CDCD8C #E0E0B7 #F2F2E1

Accessibility & contrast

On white

1.65
#CDCD8C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.71
#CDCD8C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD8C
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD8C#FFFFFF#000000##000000
##CDCD8C1.001.6512.7112.71
#FFFFFF1.651.0021.0021.00
#00000012.7121.001.001.00
##00000012.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C887
Deuteranopia (green-blind)
#D8CB8F
Tritanopia (blue-blind)
#D6C5BC
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #cdcd8c;
/* rgb */ color: rgb(205, 205, 140);
/* oklch */ color: oklch(83.3% 0.085 108.1);
Tailwind
colors: {
  custom: {
    50: '#dddcae',
    500: '#cdcd8c',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd8c;
$custom-light: #dddcae;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd8c",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 140
  },
  "hsl": {
    "h": 60,
    "s": 39.394,
    "l": 67.647
  },
  "oklch": {
    "l": 0.833,
    "c": 0.08476,
    "h": 108.1
  },
  "luminance": 0.58535
}

Semantic roles & 50–950 ramp

primary
#CDCD8C
secondary
#5C5CA2
accent
#33B233
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151510
muted
#848481

Preview Lab

Preview with #CDCD8C

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

Preview Lab → · Contrast checker → · Palette generator →

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