#CDC172#CDC172

#CDC172 is a light, moderate yellow. Relative luminance 0.523; OKLCH L 80.4% C 0.101 H 100.8°. Best body text is #000000 at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#CDC172
RGBrgb(205, 193, 114)
HSLhsl(52, 48%, 63%)
HSVhsv(52, 44%, 80%)
CMYKcmyk(0%, 5.9%, 44.4%, 19.6%)
CIE-LABlab(77.48, -6.75, 41.16)
CIE-LCHlch(77.48, 41.71, 99.31°)
OKLaboklab(80.35% -0.0189 0.0994)
OKLCHoklch(80.35% 0.101 100.8)
XYZxyz(47.2852, 52.3355, 23.5273)
Luminance0.5233 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC172 #727ECD
analogous
#CD9472 #CDC172 #ABCD72
triadic
#CDC172 #72CDC1 #C172CD
tetradic
#CDC172 #72CD94 #727ECD #CD72AB
square
#CDC172 #72CD94 #727ECD #CD72AB
split-complementary
#CDC172 #72ABCD #9472CD
monochromatic
#918533 #BDAD45 #CDC172 #DDD59F #EDE9CC

Accessibility & contrast

On white

1.83
#CDC172 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.47
#CDC172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC172
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC172#FFFFFF#000000##000000
##CDC1721.001.8311.4711.47
#FFFFFF1.831.0021.0021.00
#00000011.4721.001.001.00
##00000011.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEBD6C
Deuteranopia (green-blind)
#D2C275
Tritanopia (blue-blind)
#D9B7AE
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc172;
/* rgb */ color: rgb(205, 193, 114);
/* oklch */ color: oklch(80.4% 0.101 100.8);
Tailwind
colors: {
  custom: {
    50: '#ded39c',
    500: '#cdc172',
    950: '#000000',
  },
}
SCSS
$custom: #cdc172;
$custom-light: #ded39c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc172",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 114
  },
  "hsl": {
    "h": 52.088,
    "s": 47.644,
    "l": 62.549
  },
  "oklch": {
    "l": 0.80354,
    "c": 0.10115,
    "h": 100.8
  },
  "luminance": 0.52334
}

Semantic roles & 50–950 ramp

primary
#CDC172
secondary
#4C5697
accent
#3EBB2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDC172

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

Preview Lab → · Contrast checker → · Palette generator →

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