#CDCC97#CDCC97

#CDCC97 is a very light, moderate yellow. Relative luminance 0.584; OKLCH L 83.3% C 0.070 H 106.9°. Best body text is #000000 at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#CDCC97
RGBrgb(205, 204, 151)
HSLhsl(59, 35%, 70%)
HSVhsv(59, 26%, 80%)
CMYKcmyk(0%, 0.5%, 26.3%, 19.6%)
CIE-LABlab(80.96, -8.06, 26.63)
CIE-LCHlch(80.96, 27.82, 106.85°)
OKLaboklab(83.3% -0.0204 0.067)
OKLCHoklch(83.3% 0.07 106.9)
XYZxyz(52.3557, 58.4000, 37.7864)
Luminance0.5840 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCC97 #9798CD
analogous
#CDB197 #CDCC97 #B3CD97
triadic
#CDCC97 #97CDCC #CC97CD
tetradic
#CDCC97 #97CDB1 #9798CD #CD97B3
square
#CDCC97 #97CDB1 #9798CD #CD97B3
split-complementary
#CDCC97 #97B3CD #B197CD
monochromatic
#9E9C4C #B9B86E #CDCC97 #E1E0C0 #F5F5EA

Accessibility & contrast

On white

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

On black

12.68
#CDCC97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCC97
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCC97#FFFFFF#000000##000000
##CDCC971.001.6612.6812.68
#FFFFFF1.661.0021.0021.00
#00000012.6821.001.001.00
##00000012.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C894
Deuteranopia (green-blind)
#D6CA99
Tritanopia (blue-blind)
#D5C5BE
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #cdcc97;
/* rgb */ color: rgb(205, 204, 151);
/* oklch */ color: oklch(83.3% 0.070 106.9);
Tailwind
colors: {
  custom: {
    50: '#dddbb6',
    500: '#cdcc97',
    950: '#000000',
  },
}
SCSS
$custom: #cdcc97;
$custom-light: #dddbb6;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcc97",
  "rgb": {
    "r": 205,
    "g": 204,
    "b": 151
  },
  "hsl": {
    "h": 58.889,
    "s": 35.065,
    "l": 69.804
  },
  "oklch": {
    "l": 0.83302,
    "c": 0.07006,
    "h": 106.9
  },
  "luminance": 0.58399
}

Semantic roles & 50–950 ramp

primary
#CDCC97
secondary
#6667A2
accent
#3AAE38
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151511
muted
#848481

Preview Lab

Preview with #CDCC97

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

Preview Lab → · Contrast checker → · Palette generator →

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