#CEC166#CEC166

#CEC166 is a light, moderate yellow. Relative luminance 0.522; OKLCH L 80.3% C 0.114 H 101.3°. Best body text is #000000 at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#CEC166
RGBrgb(206, 193, 102)
HSLhsl(53, 51%, 60%)
HSVhsv(53, 50%, 81%)
CMYKcmyk(0%, 6.3%, 50.5%, 19.2%)
CIE-LABlab(77.41, -7.47, 47.04)
CIE-LCHlch(77.41, 47.63, 99.03°)
OKLaboklab(80.27% -0.0222 0.1115)
OKLCHoklch(80.27% 0.114 101.3)
XYZxyz(46.9232, 52.2227, 20.1761)
Luminance0.5222 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC166 #6673CE
analogous
#CE8D66 #CEC166 #A7CE66
triadic
#CEC166 #66CEC1 #C166CE
tetradic
#CEC166 #66CE8D #6673CE #CE66A7
square
#CEC166 #66CE8D #6673CE #CE66A7
split-complementary
#CEC166 #66A7CE #8D66CE
monochromatic
#8D812D #BBAB3C #CEC166 #DDD494 #ECE7C3

Accessibility & contrast

On white

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

On black

11.44
#CEC166 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC166
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC166#FFFFFF#000000##000000
##CEC1661.001.8311.4411.44
#FFFFFF1.831.0021.0021.00
#00000011.4421.001.001.00
##00000011.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BC5E
Deuteranopia (green-blind)
#D4C26A
Tritanopia (blue-blind)
#DBB6AC
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cec166;
/* rgb */ color: rgb(206, 193, 102);
/* oklch */ color: oklch(80.3% 0.114 101.3);
Tailwind
colors: {
  custom: {
    50: '#dfd394',
    500: '#cec166',
    950: '#000000',
  },
}
SCSS
$custom: #cec166;
$custom-light: #dfd394;
$custom-dark: #000000;
JSON
{
  "hex": "#cec166",
  "rgb": {
    "r": 206,
    "g": 193,
    "b": 102
  },
  "hsl": {
    "h": 52.5,
    "s": 51.485,
    "l": 60.392
  },
  "oklch": {
    "l": 0.80271,
    "c": 0.11368,
    "h": 101.3
  },
  "luminance": 0.52221
}

Semantic roles & 50–950 ramp

primary
#CEC166
secondary
#454F93
accent
#3ABF27
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CEC166

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

Preview Lab → · Contrast checker → · Palette generator →

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