#CDC96F#CDC96F

#CDC96F is a light, moderate yellow. Relative luminance 0.559; OKLCH L 82.0% C 0.113 H 106.4°. Best body text is #000000 at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#CDC96F
RGBrgb(205, 201, 111)
HSLhsl(57, 48%, 62%)
HSVhsv(57, 46%, 80%)
CMYKcmyk(0%, 2%, 45.9%, 19.6%)
CIE-LABlab(79.56, -11.15, 45.22)
CIE-LCHlch(79.56, 46.57, 103.85°)
OKLaboklab(81.99% -0.0318 0.1082)
OKLCHoklch(81.99% 0.113 106.4)
XYZxyz(48.9338, 55.9014, 23.2482)
Luminance0.5590 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC96F #6F73CD
analogous
#CD9A6F #CDC96F #A2CD6F
triadic
#CDC96F #6FCDC9 #C96FCD
tetradic
#CDC96F #6FCD9A #6F73CD #CD6FA2
square
#CDC96F #6FCD9A #6F73CD #CD6FA2
split-complementary
#CDC96F #6FA2CD #9A6FCD
monochromatic
#908C32 #BDB842 #CDC96F #DDDA9C #EDEBCA

Accessibility & contrast

On white

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

On black

12.18
#CDC96F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC96F
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC96F#FFFFFF#000000##000000
##CDC96F1.001.7212.1812.18
#FFFFFF1.721.0021.0021.00
#00000012.1821.001.001.00
##00000012.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C367
Deuteranopia (green-blind)
#D9C773
Tritanopia (blue-blind)
#D9BFB4
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc96f;
/* rgb */ color: rgb(205, 201, 111);
/* oklch */ color: oklch(82.0% 0.113 106.4);
Tailwind
colors: {
  custom: {
    50: '#ded99a',
    500: '#cdc96f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc96f;
$custom-light: #ded99a;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc96f",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 111
  },
  "hsl": {
    "h": 57.447,
    "s": 48.454,
    "l": 61.961
  },
  "oklch": {
    "l": 0.81989,
    "c": 0.11279,
    "h": 106.4
  },
  "luminance": 0.559
}

Semantic roles & 50–950 ramp

primary
#CDC96F
secondary
#4A4D96
accent
#30BC2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDC96F

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

Preview Lab → · Contrast checker → · Palette generator →

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