#CDC170#CDC170

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

Color values

HEX#CDC170
RGBrgb(205, 193, 112)
HSLhsl(52, 48%, 62%)
HSVhsv(52, 45%, 80%)
CMYKcmyk(0%, 5.9%, 45.4%, 19.6%)
CIE-LABlab(77.45, -6.95, 42.13)
CIE-LCHlch(77.45, 42.70, 99.37°)
OKLaboklab(80.32% -0.0196 0.1014)
OKLCHoklch(80.32% 0.103 101)
XYZxyz(47.1726, 52.2904, 22.9343)
Luminance0.5229 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC170 #707CCD
analogous
#CD9370 #CDC170 #ABCD70
triadic
#CDC170 #70CDC1 #C170CD
tetradic
#CDC170 #70CD93 #707CCD #CD70AB
square
#CDC170 #70CD93 #707CCD #CD70AB
split-complementary
#CDC170 #70ABCD #9370CD
monochromatic
#908432 #BDAD43 #CDC170 #DDD59D #EDE8CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC170#FFFFFF#000000##000000
##CDC1701.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)
#CFBC69
Deuteranopia (green-blind)
#D2C273
Tritanopia (blue-blind)
#D9B7AE
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc170;
/* rgb */ color: rgb(205, 193, 112);
/* oklch */ color: oklch(80.3% 0.103 101.0);
Tailwind
colors: {
  custom: {
    50: '#ded39a',
    500: '#cdc170',
    950: '#000000',
  },
}
SCSS
$custom: #cdc170;
$custom-light: #ded39a;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc170",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 112
  },
  "hsl": {
    "h": 52.258,
    "s": 48.187,
    "l": 62.157
  },
  "oklch": {
    "l": 0.80324,
    "c": 0.1033,
    "h": 101
  },
  "luminance": 0.52289
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CDC170

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

Preview Lab → · Contrast checker → · Palette generator →

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