#CDCD7A#CDCD7A

#CDCD7A is a very light, moderate yellow. Relative luminance 0.580; OKLCH L 83.0% C 0.106 H 108.5°. Best body text is #000000 at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#CDCD7A
RGBrgb(205, 205, 122)
HSLhsl(60, 45%, 64%)
HSVhsv(60, 40%, 80%)
CMYKcmyk(0%, 0%, 40.5%, 19.6%)
CIE-LABlab(80.77, -12.07, 41.26)
CIE-LCHlch(80.77, 42.99, 106.30°)
OKLaboklab(83% -0.0335 0.1001)
OKLCHoklch(83% 0.106 108.5)
XYZxyz(50.5218, 58.0480, 26.9516)
Luminance0.5805 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD7A #7A7ACD
analogous
#CDA47A #CDCD7A #A4CD7A
triadic
#CDCD7A #7ACDCD #CD7ACD
tetradic
#CDCD7A #7ACDA4 #7A7ACD #CD7AA4
square
#CDCD7A #7ACDA4 #7A7ACD #CD7AA4
split-complementary
#CDCD7A #7AA4CD #A47ACD
monochromatic
#959538 #BCBC4E #CDCD7A #DEDEA6 #EEEED3

Accessibility & contrast

On white

1.67
#CDCD7A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.61
#CDCD7A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD7A
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD7A#FFFFFF#000000##000000
##CDCD7A1.001.6712.6112.61
#FFFFFF1.671.0021.0021.00
#00000012.6121.001.001.00
##00000012.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C773
Deuteranopia (green-blind)
#DBCA7E
Tritanopia (blue-blind)
#D8C4B9
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #cdcd7a;
/* rgb */ color: rgb(205, 205, 122);
/* oklch */ color: oklch(83.0% 0.106 108.5);
Tailwind
colors: {
  custom: {
    50: '#dddca2',
    500: '#cdcd7a',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd7a;
$custom-light: #dddca2;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd7a",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 122
  },
  "hsl": {
    "h": 60,
    "s": 45.355,
    "l": 64.118
  },
  "oklch": {
    "l": 0.82996,
    "c": 0.10552,
    "h": 108.5
  },
  "luminance": 0.58047
}

Semantic roles & 50–950 ramp

primary
#CDCD7A
secondary
#50509B
accent
#2DB92D
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15150F
muted
#848480

Preview Lab

Preview with #CDCD7A

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

Preview Lab → · Contrast checker → · Palette generator →

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