#CDCD98#CDCD98

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

Color values

HEX#CDCD98
RGBrgb(205, 205, 152)
HSLhsl(60, 35%, 70%)
HSVhsv(60, 26%, 80%)
CMYKcmyk(0%, 0%, 25.9%, 19.6%)
CIE-LABlab(81.24, -8.44, 26.48)
CIE-LCHlch(81.24, 27.80, 107.68°)
OKLaboklab(83.53% -0.0214 0.0667)
OKLCHoklch(83.53% 0.07 107.8)
XYZxyz(52.6757, 58.9095, 38.2954)
Luminance0.5891 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD98 #9898CD
analogous
#CDB398 #CDCD98 #B3CD98
triadic
#CDCD98 #98CDCD #CD98CD
tetradic
#CDCD98 #98CDB3 #9898CD #CD98B3
square
#CDCD98 #98CDB3 #9898CD #CD98B3
split-complementary
#CDCD98 #98B2CD #B298CD
monochromatic
#9E9E4D #B9B96F #CDCD98 #E1E1C1 #F5F5EA

Accessibility & contrast

On white

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

On black

12.78
#CDCD98 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD98
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD98#FFFFFF#000000##000000
##CDCD981.001.6412.7812.78
#FFFFFF1.641.0021.0021.00
#00000012.7821.001.001.00
##00000012.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdcd98;
/* rgb */ color: rgb(205, 205, 152);
/* oklch */ color: oklch(83.5% 0.070 107.8);
Tailwind
colors: {
  custom: {
    50: '#dddcb6',
    500: '#cdcd98',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd98;
$custom-light: #dddcb6;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd98",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 152
  },
  "hsl": {
    "h": 60,
    "s": 34.641,
    "l": 70
  },
  "oklch": {
    "l": 0.8353,
    "c": 0.07006,
    "h": 107.8
  },
  "luminance": 0.58909
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CDCD98

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

Preview Lab → · Contrast checker → · Palette generator →

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