#CDC171#CDC171

#CDC171 is a light, moderate yellow. Relative luminance 0.523; OKLCH L 80.3% C 0.102 H 100.9°. Best body text is #000000 at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#CDC171
RGBrgb(205, 193, 113)
HSLhsl(52, 48%, 62%)
HSVhsv(52, 45%, 80%)
CMYKcmyk(0%, 5.9%, 44.9%, 19.6%)
CIE-LABlab(77.47, -6.85, 41.65)
CIE-LCHlch(77.47, 42.20, 99.34°)
OKLaboklab(80.34% -0.0193 0.1004)
OKLCHoklch(80.34% 0.102 100.9)
XYZxyz(47.2286, 52.3128, 23.2291)
Luminance0.5231 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC171 #717DCD
analogous
#CD9371 #CDC171 #ABCD71
triadic
#CDC171 #71CDC1 #C171CD
tetradic
#CDC171 #71CD93 #717DCD #CD71AB
square
#CDC171 #71CD93 #717DCD #CD71AB
split-complementary
#CDC171 #71ABCD #9371CD
monochromatic
#918433 #BDAD44 #CDC171 #DDD59E #EDE9CC

Accessibility & contrast

On white

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

On black

11.46
#CDC171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC171
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC171#FFFFFF#000000##000000
##CDC1711.001.8311.4611.46
#FFFFFF1.831.0021.0021.00
#00000011.4621.001.001.00
##00000011.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdc171;
/* rgb */ color: rgb(205, 193, 113);
/* oklch */ color: oklch(80.3% 0.102 100.9);
Tailwind
colors: {
  custom: {
    50: '#ded39b',
    500: '#cdc171',
    950: '#000000',
  },
}
SCSS
$custom: #cdc171;
$custom-light: #ded39b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc171",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 113
  },
  "hsl": {
    "h": 52.174,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.80339,
    "c": 0.10222,
    "h": 100.9
  },
  "luminance": 0.52311
}

Semantic roles & 50–950 ramp

primary
#CDC171
secondary
#4B5597
accent
#3DBB2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDC171

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

Preview Lab → · Contrast checker → · Palette generator →

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