#CFC166#CFC166

#CFC166 is a light, moderate yellow. Relative luminance 0.524; OKLCH L 80.4% C 0.114 H 100.7°. Best body text is #000000 at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#CFC166
RGBrgb(207, 193, 102)
HSLhsl(52, 52%, 61%)
HSVhsv(52, 51%, 81%)
CMYKcmyk(0%, 6.8%, 50.7%, 18.8%)
CIE-LABlab(77.50, -7.06, 47.16)
CIE-LCHlch(77.50, 47.69, 98.52°)
OKLaboklab(80.36% -0.0211 0.1117)
OKLCHoklch(80.36% 0.114 100.7)
XYZxyz(47.2018, 52.3663, 20.1891)
Luminance0.5236 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC166 #6674CF
analogous
#CF8C66 #CFC166 #A8CF66
triadic
#CFC166 #66CFC1 #C166CF
tetradic
#CFC166 #66CF8C #6674CF #CF66A8
square
#CFC166 #66CF8C #6674CF #CF66A8
split-complementary
#CFC166 #66A8CF #8C66CF
monochromatic
#8E812D #BDAB3B #CFC166 #DED495 #ECE7C3

Accessibility & contrast

On white

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

On black

11.47
#CFC166 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC166
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC166#FFFFFF#000000##000000
##CFC1661.001.8311.4711.47
#FFFFFF1.831.0021.0021.00
#00000011.4721.001.001.00
##00000011.4721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cfc166;
/* rgb */ color: rgb(207, 193, 102);
/* oklch */ color: oklch(80.4% 0.114 100.7);
Tailwind
colors: {
  custom: {
    50: '#e0d394',
    500: '#cfc166',
    950: '#000000',
  },
}
SCSS
$custom: #cfc166;
$custom-light: #e0d394;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc166",
  "rgb": {
    "r": 207,
    "g": 193,
    "b": 102
  },
  "hsl": {
    "h": 52,
    "s": 52.239,
    "l": 60.588
  },
  "oklch": {
    "l": 0.8036,
    "c": 0.11371,
    "h": 100.7
  },
  "luminance": 0.52365
}

Semantic roles & 50–950 ramp

primary
#CFC166
secondary
#454F94
accent
#3AC026
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CFC166

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

Preview Lab → · Contrast checker → · Palette generator →

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