#CDC795#CDC795

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

Color values

HEX#CDC795
RGBrgb(205, 199, 149)
HSLhsl(54, 36%, 69%)
HSVhsv(54, 27%, 80%)
CMYKcmyk(0%, 2.9%, 27.3%, 19.6%)
CIE-LABlab(79.61, -5.75, 25.85)
CIE-LCHlch(79.61, 26.49, 102.55°)
OKLaboklab(82.22% -0.0138 0.0651)
OKLCHoklch(82.22% 0.067 102)
XYZxyz(51.0253, 55.9969, 36.5485)
Luminance0.5600 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC795 #959BCD
analogous
#CDAB95 #CDC795 #B7CD95
triadic
#CDC795 #95CDC7 #C795CD
tetradic
#CDC795 #95CDAB #959BCD #CD95B7
square
#CDC795 #95CDAB #959BCD #CD95B7
split-complementary
#CDC795 #95B7CD #AB95CD
monochromatic
#9D944A #B9B16B #CDC795 #E1DDBF #F4F3E8

Accessibility & contrast

On white

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

On black

12.20
#CDC795 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC795
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC795#FFFFFF#000000##000000
##CDC7951.001.7212.2012.20
#FFFFFF1.721.0021.0021.00
#00000012.2021.001.001.00
##00000012.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0C392
Deuteranopia (green-blind)
#D2C797
Tritanopia (blue-blind)
#D6C0BA
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc795;
/* rgb */ color: rgb(205, 199, 149);
/* oklch */ color: oklch(82.2% 0.067 102.0);
Tailwind
colors: {
  custom: {
    50: '#ddd7b4',
    500: '#cdc795',
    950: '#000000',
  },
}
SCSS
$custom: #cdc795;
$custom-light: #ddd7b4;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc795",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 149
  },
  "hsl": {
    "h": 53.571,
    "s": 35.897,
    "l": 69.412
  },
  "oklch": {
    "l": 0.82222,
    "c": 0.06658,
    "h": 102
  },
  "luminance": 0.55996
}

Semantic roles & 50–950 ramp

primary
#CDC795
secondary
#646BA2
accent
#44AF37
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151411
muted
#848381

Preview Lab

Preview with #CDC795

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

Preview Lab → · Contrast checker → · Palette generator →

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