#CDCD99#CDCD99

#CDCD99 is a very light, moderate yellow. Relative luminance 0.589; OKLCH L 83.6% C 0.069 H 107.8°. Best body text is #000000 at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#CDCD99
RGBrgb(205, 205, 153)
HSLhsl(60, 34%, 70%)
HSVhsv(60, 25%, 80%)
CMYKcmyk(0%, 0%, 25.4%, 19.6%)
CIE-LABlab(81.26, -8.31, 25.98)
CIE-LCHlch(81.26, 27.28, 107.73°)
OKLaboklab(83.55% -0.021 0.0655)
OKLCHoklch(83.55% 0.069 107.8)
XYZxyz(52.7579, 58.9424, 38.7286)
Luminance0.5894 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD99 #9999CD
analogous
#CDB399 #CDCD99 #B3CD99
triadic
#CDCD99 #99CDCD #CD99CD
tetradic
#CDCD99 #99CDB3 #9999CD #CD99B3
square
#CDCD99 #99CDB3 #9999CD #CD99B3
split-complementary
#CDCD99 #99B3CD #B399CD
monochromatic
#9E9E4D #B9B970 #CDCD99 #E1E1C2 #F5F5EA

Accessibility & contrast

On white

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

On black

12.79
#CDCD99 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD99
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD99#FFFFFF#000000##000000
##CDCD991.001.6412.7912.79
#FFFFFF1.641.0021.0021.00
#00000012.7921.001.001.00
##00000012.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdcd99;
/* rgb */ color: rgb(205, 205, 153);
/* oklch */ color: oklch(83.6% 0.069 107.8);
Tailwind
colors: {
  custom: {
    50: '#dcdcb7',
    500: '#cdcd99',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd99;
$custom-light: #dcdcb7;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd99",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 153
  },
  "hsl": {
    "h": 60,
    "s": 34.211,
    "l": 70.196
  },
  "oklch": {
    "l": 0.83551,
    "c": 0.06882,
    "h": 107.8
  },
  "luminance": 0.58942
}

Semantic roles & 50–950 ramp

primary
#CDCD99
secondary
#6868A2
accent
#38AD38
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151511
muted
#848481

Preview Lab

Preview with #CDCD99

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

Preview Lab → · Contrast checker → · Palette generator →

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