#CDCD7C#CDCD7C

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

Color values

HEX#CDCD7C
RGBrgb(205, 205, 124)
HSLhsl(60, 45%, 65%)
HSVhsv(60, 40%, 80%)
CMYKcmyk(0%, 0%, 39.5%, 19.6%)
CIE-LABlab(80.79, -11.85, 40.29)
CIE-LCHlch(80.79, 42.00, 106.39°)
OKLaboklab(83.03% -0.0327 0.098)
OKLCHoklch(83.03% 0.103 108.5)
XYZxyz(50.6470, 58.0980, 27.6109)
Luminance0.5810 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD7C #7C7CCD
analogous
#CDA57C #CDCD7C #A5CD7C
triadic
#CDCD7C #7CCDCD #CD7CCD
tetradic
#CDCD7C #7CCDA5 #7C7CCD #CD7CA5
square
#CDCD7C #7CCDA5 #7C7CCD #CD7CA5
split-complementary
#CDCD7C #7CA5CD #A57CCD
monochromatic
#969639 #BCBC50 #CDCD7C #DEDEA8 #EFEFD5

Accessibility & contrast

On white

1.66
#CDCD7C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.62
#CDCD7C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD7C
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD7C#FFFFFF#000000##000000
##CDCD7C1.001.6612.6212.62
#FFFFFF1.661.0021.0021.00
#00000012.6221.001.001.00
##00000012.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C776
Deuteranopia (green-blind)
#DACA80
Tritanopia (blue-blind)
#D8C4B9
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #cdcd7c;
/* rgb */ color: rgb(205, 205, 124);
/* oklch */ color: oklch(83.0% 0.103 108.5);
Tailwind
colors: {
  custom: {
    50: '#dddca3',
    500: '#cdcd7c',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd7c;
$custom-light: #dddca3;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd7c",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 124
  },
  "hsl": {
    "h": 60,
    "s": 44.751,
    "l": 64.51
  },
  "oklch": {
    "l": 0.83028,
    "c": 0.1033,
    "h": 108.5
  },
  "luminance": 0.58097
}

Semantic roles & 50–950 ramp

primary
#CDCD7C
secondary
#51519C
accent
#2EB82E
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15150F
muted
#848480

Preview Lab

Preview with #CDCD7C

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

Preview Lab → · Contrast checker → · Palette generator →

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