#CDC796#CDC796

#CDC796 is a very light, moderate yellow. Relative luminance 0.560; OKLCH L 82.2% C 0.065 H 101.9°. Best body text is #000000 at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#CDC796
RGBrgb(205, 199, 150)
HSLhsl(53, 35%, 70%)
HSVhsv(53, 27%, 80%)
CMYKcmyk(0%, 2.9%, 26.8%, 19.6%)
CIE-LABlab(79.63, -5.62, 25.35)
CIE-LCHlch(79.63, 25.97, 102.50°)
OKLaboklab(82.24% -0.0134 0.064)
OKLCHoklch(82.24% 0.065 101.9)
XYZxyz(51.1055, 56.0290, 36.9707)
Luminance0.5603 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC796 #969CCD
analogous
#CDAC96 #CDC796 #B7CD96
triadic
#CDC796 #96CDC7 #C796CD
tetradic
#CDC796 #96CDAC #969CCD #CD96B7
square
#CDC796 #96CDAC #969CCD #CD96B7
split-complementary
#CDC796 #96B7CD #AC96CD
monochromatic
#9E954B #B9B16D #CDC796 #E1DDBF #F4F3E9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC796#FFFFFF#000000##000000
##CDC7961.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)
#D0C493
Deuteranopia (green-blind)
#D2C798
Tritanopia (blue-blind)
#D5C0BA
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc796;
/* rgb */ color: rgb(205, 199, 150);
/* oklch */ color: oklch(82.2% 0.065 101.9);
Tailwind
colors: {
  custom: {
    50: '#ddd7b5',
    500: '#cdc796',
    950: '#000000',
  },
}
SCSS
$custom: #cdc796;
$custom-light: #ddd7b5;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc796",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 150
  },
  "hsl": {
    "h": 53.455,
    "s": 35.484,
    "l": 69.608
  },
  "oklch": {
    "l": 0.82243,
    "c": 0.06534,
    "h": 101.9
  },
  "luminance": 0.56028
}

Semantic roles & 50–950 ramp

primary
#CDC796
secondary
#656CA2
accent
#44AE37
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151411
muted
#848381

Preview Lab

Preview with #CDC796

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

Preview Lab → · Contrast checker → · Palette generator →

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