#CDC797#CDC797

#CDC797 is a very light, moderate yellow. Relative luminance 0.561; OKLCH L 82.3% C 0.064 H 101.7°. Best body text is #000000 at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#CDC797
RGBrgb(205, 199, 151)
HSLhsl(53, 35%, 70%)
HSVhsv(53, 26%, 80%)
CMYKcmyk(0%, 2.9%, 26.3%, 19.6%)
CIE-LABlab(79.65, -5.48, 24.85)
CIE-LCHlch(79.65, 25.45, 102.45°)
OKLaboklab(82.26% -0.013 0.0628)
OKLCHoklch(82.26% 0.064 101.7)
XYZxyz(51.1863, 56.0613, 37.3966)
Luminance0.5606 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC797 #979DCD
analogous
#CDAC97 #CDC797 #B8CD97
triadic
#CDC797 #97CDC7 #C797CD
tetradic
#CDC797 #97CDAC #979DCD #CD97B8
square
#CDC797 #97CDAC #979DCD #CD97B8
split-complementary
#CDC797 #97B8CD #AC97CD
monochromatic
#9E954C #B9B16E #CDC797 #E1DDC0 #F5F4EA

Accessibility & contrast

On white

1.72
#CDC797 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.21
#CDC797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC797
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC797#FFFFFF#000000##000000
##CDC7971.001.7212.2112.21
#FFFFFF1.721.0021.0021.00
#00000012.2121.001.001.00
##00000012.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0C494
Deuteranopia (green-blind)
#D2C799
Tritanopia (blue-blind)
#D5C0BA
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc797;
/* rgb */ color: rgb(205, 199, 151);
/* oklch */ color: oklch(82.3% 0.064 101.7);
Tailwind
colors: {
  custom: {
    50: '#ddd7b6',
    500: '#cdc797',
    950: '#000000',
  },
}
SCSS
$custom: #cdc797;
$custom-light: #ddd7b6;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc797",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 151
  },
  "hsl": {
    "h": 53.333,
    "s": 35.065,
    "l": 69.804
  },
  "oklch": {
    "l": 0.82263,
    "c": 0.06408,
    "h": 101.7
  },
  "luminance": 0.5606
}

Semantic roles & 50–950 ramp

primary
#CDC797
secondary
#666DA2
accent
#45AE38
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151411
muted
#848381

Preview Lab

Preview with #CDC797

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

Preview Lab → · Contrast checker → · Palette generator →

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