#CDC997#CDC997

#CDC997 is a very light, moderate yellow. Relative luminance 0.570; OKLCH L 82.7% C 0.066 H 103.9°. Best body text is #000000 at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#CDC997
RGBrgb(205, 201, 151)
HSLhsl(56, 35%, 70%)
HSVhsv(56, 26%, 80%)
CMYKcmyk(0%, 2%, 26.3%, 19.6%)
CIE-LABlab(80.17, -6.52, 25.56)
CIE-LCHlch(80.17, 26.38, 104.31°)
OKLaboklab(82.68% -0.016 0.0645)
OKLCHoklch(82.68% 0.066 103.9)
XYZxyz(51.6495, 56.9877, 37.5510)
Luminance0.5699 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC997 #979BCD
analogous
#CDAE97 #CDC997 #B6CD97
triadic
#CDC997 #97CDC9 #C997CD
tetradic
#CDC997 #97CDAE #979BCD #CD97B6
square
#CDC997 #97CDAE #979BCD #CD97B6
split-complementary
#CDC997 #97B6CD #AE97CD
monochromatic
#9E984C #B9B46E #CDC997 #E1DEC0 #F5F4EA

Accessibility & contrast

On white

1.69
#CDC997 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.40
#CDC997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC997
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC997#FFFFFF#000000##000000
##CDC9971.001.6912.4012.40
#FFFFFF1.691.0021.0021.00
#00000012.4021.001.001.00
##00000012.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2C594
Deuteranopia (green-blind)
#D4C899
Tritanopia (blue-blind)
#D5C2BC
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #cdc997;
/* rgb */ color: rgb(205, 201, 151);
/* oklch */ color: oklch(82.7% 0.066 103.9);
Tailwind
colors: {
  custom: {
    50: '#ddd9b6',
    500: '#cdc997',
    950: '#000000',
  },
}
SCSS
$custom: #cdc997;
$custom-light: #ddd9b6;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc997",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 151
  },
  "hsl": {
    "h": 55.556,
    "s": 35.065,
    "l": 69.804
  },
  "oklch": {
    "l": 0.82678,
    "c": 0.06641,
    "h": 103.9
  },
  "luminance": 0.56987
}

Semantic roles & 50–950 ramp

primary
#CDC997
secondary
#666AA2
accent
#40AE38
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151411
muted
#848381

Preview Lab

Preview with #CDC997

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

Preview Lab → · Contrast checker → · Palette generator →

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