#CDCD8A#CDCD8A

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

Color values

HEX#CDCD8A
RGBrgb(205, 205, 138)
HSLhsl(60, 40%, 67%)
HSVhsv(60, 33%, 80%)
CMYKcmyk(0%, 0%, 32.7%, 19.6%)
CIE-LABlab(81.00, -10.24, 33.44)
CIE-LCHlch(81.00, 34.97, 107.03°)
OKLaboklab(83.26% -0.0271 0.0828)
OKLCHoklch(83.26% 0.087 108.2)
XYZxyz(51.5960, 58.4777, 32.6091)
Luminance0.5848 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD8A #8A8ACD
analogous
#CDAC8A #CDCD8A #ACCD8A
triadic
#CDCD8A #8ACDCD #CD8ACD
tetradic
#CDCD8A #8ACDAC #8A8ACD #CD8AAC
square
#CDCD8A #8ACDAC #8A8ACD #CD8AAC
split-complementary
#CDCD8A #8AACCD #AC8ACD
monochromatic
#9B9B42 #BBBB5F #CDCD8A #DFDFB5 #F2F2E0

Accessibility & contrast

On white

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

On black

12.70
#CDCD8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD8A
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD8A#FFFFFF#000000##000000
##CDCD8A1.001.6512.7012.70
#FFFFFF1.651.0021.0021.00
#00000012.7021.001.001.00
##00000012.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdcd8a;
/* rgb */ color: rgb(205, 205, 138);
/* oklch */ color: oklch(83.3% 0.087 108.2);
Tailwind
colors: {
  custom: {
    50: '#dddcad',
    500: '#cdcd8a',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd8a;
$custom-light: #dddcad;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd8a",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 138
  },
  "hsl": {
    "h": 60,
    "s": 40.12,
    "l": 67.255
  },
  "oklch": {
    "l": 0.83263,
    "c": 0.08715,
    "h": 108.2
  },
  "luminance": 0.58477
}

Semantic roles & 50–950 ramp

primary
#CDCD8A
secondary
#5A5AA1
accent
#32B332
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151510
muted
#848481

Preview Lab

Preview with #CDCD8A

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

Preview Lab → · Contrast checker → · Palette generator →

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