#CDC866#CDC866

#CDC866 is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.7% C 0.121 H 106.2°. Best body text is #000000 at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#CDC866
RGBrgb(205, 200, 102)
HSLhsl(57, 51%, 60%)
HSVhsv(57, 50%, 80%)
CMYKcmyk(0%, 2.4%, 50.2%, 19.6%)
CIE-LABlab(79.18, -11.47, 49.13)
CIE-LCHlch(79.18, 50.45, 103.14°)
OKLaboklab(81.66% -0.0336 0.1161)
OKLCHoklch(81.66% 0.121 106.2)
XYZxyz(48.2306, 55.2484, 20.6912)
Luminance0.5525 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC866 #666BCD
analogous
#CD9466 #CDC866 #9FCD66
triadic
#CDC866 #66CDC8 #C866CD
tetradic
#CDC866 #66CD94 #666BCD #CD669F
square
#CDC866 #66CD94 #666BCD #CD669F
split-complementary
#CDC866 #669FCD #9466CD
monochromatic
#8B872D #B9B33D #CDC866 #DCD994 #EBE9C2

Accessibility & contrast

On white

1.74
#CDC866 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.05
#CDC866 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC866
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC866#FFFFFF#000000##000000
##CDC8661.001.7412.0512.05
#FFFFFF1.741.0021.0021.00
#00000012.0521.001.001.00
##00000012.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C25D
Deuteranopia (green-blind)
#D9C66B
Tritanopia (blue-blind)
#DABDB2
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc866;
/* rgb */ color: rgb(205, 200, 102);
/* oklch */ color: oklch(81.7% 0.121 106.2);
Tailwind
colors: {
  custom: {
    50: '#ded894',
    500: '#cdc866',
    950: '#000000',
  },
}
SCSS
$custom: #cdc866;
$custom-light: #ded894;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc866",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 102
  },
  "hsl": {
    "h": 57.087,
    "s": 50.739,
    "l": 60.196
  },
  "oklch": {
    "l": 0.81657,
    "c": 0.12084,
    "h": 106.2
  },
  "luminance": 0.55247
}

Semantic roles & 50–950 ramp

primary
#CDC866
secondary
#454992
accent
#2FBE27
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CDC866

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

Preview Lab → · Contrast checker → · Palette generator →

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