#CDC166#CDC166

#CDC166 is a light, moderate yellow. Relative luminance 0.521; OKLCH L 80.2% C 0.114 H 101.9°. Best body text is #000000 at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#CDC166
RGBrgb(205, 193, 102)
HSLhsl(53, 51%, 60%)
HSVhsv(53, 50%, 80%)
CMYKcmyk(0%, 5.9%, 50.2%, 19.6%)
CIE-LABlab(77.33, -7.88, 46.91)
CIE-LCHlch(77.33, 47.57, 99.54°)
OKLaboklab(80.18% -0.0233 0.1112)
OKLCHoklch(80.18% 0.114 101.9)
XYZxyz(46.6464, 52.0799, 20.1631)
Luminance0.5208 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC166 #6672CD
analogous
#CD8E66 #CDC166 #A5CD66
triadic
#CDC166 #66CDC1 #C166CD
tetradic
#CDC166 #66CD8E #6672CD #CD66A5
square
#CDC166 #66CD8E #6672CD #CD66A5
split-complementary
#CDC166 #66A5CD #8E66CD
monochromatic
#8B802D #B9AB3D #CDC166 #DCD494 #EBE6C2

Accessibility & contrast

On white

1.84
#CDC166 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.42
#CDC166 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC166
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC166#FFFFFF#000000##000000
##CDC1661.001.8411.4211.42
#FFFFFF1.841.0021.0021.00
#00000011.4221.001.001.00
##00000011.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBC5E
Deuteranopia (green-blind)
#D3C16A
Tritanopia (blue-blind)
#DAB6AC
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc166;
/* rgb */ color: rgb(205, 193, 102);
/* oklch */ color: oklch(80.2% 0.114 101.9);
Tailwind
colors: {
  custom: {
    50: '#ded394',
    500: '#cdc166',
    950: '#000000',
  },
}
SCSS
$custom: #cdc166;
$custom-light: #ded394;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc166",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 102
  },
  "hsl": {
    "h": 53.01,
    "s": 50.739,
    "l": 60.196
  },
  "oklch": {
    "l": 0.80183,
    "c": 0.11365,
    "h": 101.9
  },
  "luminance": 0.52078
}

Semantic roles & 50–950 ramp

primary
#CDC166
secondary
#454E92
accent
#39BE27
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CDC166

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

Preview Lab → · Contrast checker → · Palette generator →

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