#CDC372#CDC372

#CDC372 is a light, moderate yellow. Relative luminance 0.532; OKLCH L 80.8% C 0.103 H 102.2°. Best body text is #000000 at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#CDC372
RGBrgb(205, 195, 114)
HSLhsl(53, 48%, 63%)
HSVhsv(53, 44%, 80%)
CMYKcmyk(0%, 4.9%, 44.4%, 19.6%)
CIE-LABlab(78.01, -7.78, 41.82)
CIE-LCHlch(78.01, 42.53, 100.54°)
OKLaboklab(80.77% -0.0219 0.1008)
OKLCHoklch(80.77% 0.103 102.2)
XYZxyz(47.7303, 53.2257, 23.6756)
Luminance0.5322 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC372 #727CCD
analogous
#CD9672 #CDC372 #A9CD72
triadic
#CDC372 #72CDC3 #C372CD
tetradic
#CDC372 #72CD96 #727CCD #CD72A9
square
#CDC372 #72CD96 #727CCD #CD72A9
split-complementary
#CDC372 #72A9CD #9672CD
monochromatic
#918733 #BDB045 #CDC372 #DDD69F #EDE9CC

Accessibility & contrast

On white

1.80
#CDC372 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.64
#CDC372 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC372
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC372#FFFFFF#000000##000000
##CDC3721.001.8011.6411.64
#FFFFFF1.801.0021.0021.00
#00000011.6421.001.001.00
##00000011.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BE6B
Deuteranopia (green-blind)
#D4C375
Tritanopia (blue-blind)
#D9B9AF
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cdc372;
/* rgb */ color: rgb(205, 195, 114);
/* oklch */ color: oklch(80.8% 0.103 102.2);
Tailwind
colors: {
  custom: {
    50: '#ded59c',
    500: '#cdc372',
    950: '#000000',
  },
}
SCSS
$custom: #cdc372;
$custom-light: #ded59c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc372",
  "rgb": {
    "r": 205,
    "g": 195,
    "b": 114
  },
  "hsl": {
    "h": 53.407,
    "s": 47.644,
    "l": 62.549
  },
  "oklch": {
    "l": 0.80772,
    "c": 0.10318,
    "h": 102.2
  },
  "luminance": 0.53224
}

Semantic roles & 50–950 ramp

primary
#CDC372
secondary
#4C5497
accent
#3ABB2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDC372

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

Preview Lab → · Contrast checker → · Palette generator →

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