#CDC396#CDC396

#CDC396 is a light, moderate yellow. Relative luminance 0.542; OKLCH L 81.4% C 0.061 H 97.0°. Best body text is #000000 at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#CDC396
RGBrgb(205, 195, 150)
HSLhsl(49, 35%, 70%)
HSVhsv(49, 27%, 80%)
CMYKcmyk(0%, 4.9%, 26.8%, 19.6%)
CIE-LABlab(78.59, -3.54, 23.93)
CIE-LCHlch(78.59, 24.19, 98.41°)
OKLaboklab(81.42% -0.0075 0.0605)
OKLCHoklch(81.42% 0.061 97)
XYZxyz(50.1972, 54.2124, 36.6680)
Luminance0.5421 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC396 #96A0CD
analogous
#CDA896 #CDC396 #BCCD96
triadic
#CDC396 #96CDC3 #C396CD
tetradic
#CDC396 #96CDA8 #96A0CD #CD96BC
square
#CDC396 #96CDA8 #96A0CD #CD96BC
split-complementary
#CDC396 #96BCCD #A896CD
monochromatic
#9E8F4B #B9AB6D #CDC396 #E1DBBF #F4F2E9

Accessibility & contrast

On white

1.77
#CDC396 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.84
#CDC396 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC396
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC396#FFFFFF#000000##000000
##CDC3961.001.7711.8411.84
#FFFFFF1.771.0021.0021.00
#00000011.8421.001.001.00
##00000011.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCC093
Deuteranopia (green-blind)
#CFC497
Tritanopia (blue-blind)
#D6BCB7
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cdc396;
/* rgb */ color: rgb(205, 195, 150);
/* oklch */ color: oklch(81.4% 0.061 97.0);
Tailwind
colors: {
  custom: {
    50: '#ddd5b5',
    500: '#cdc396',
    950: '#000000',
  },
}
SCSS
$custom: #cdc396;
$custom-light: #ddd5b5;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc396",
  "rgb": {
    "r": 205,
    "g": 195,
    "b": 150
  },
  "hsl": {
    "h": 49.091,
    "s": 35.484,
    "l": 69.608
  },
  "oklch": {
    "l": 0.81417,
    "c": 0.06098,
    "h": 97
  },
  "luminance": 0.54211
}

Semantic roles & 50–950 ramp

primary
#CDC396
secondary
#6570A2
accent
#4DAE37
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151411
muted
#848381

Preview Lab

Preview with #CDC396

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

Preview Lab → · Contrast checker → · Palette generator →

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