#D9C166#D9C166

#D9C166 is a light, moderate yellow. Relative luminance 0.539; OKLCH L 81.3% C 0.115 H 94.9°. Best body text is #000000 at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#D9C166
RGBrgb(217, 193, 102)
HSLhsl(47, 60%, 63%)
HSVhsv(47, 53%, 85%)
CMYKcmyk(0%, 11.1%, 53%, 14.9%)
CIE-LABlab(78.38, -2.94, 48.42)
CIE-LCHlch(78.38, 48.51, 93.47°)
OKLaboklab(81.26% -0.0098 0.1143)
OKLCHoklch(81.26% 0.115 94.9)
XYZxyz(50.0853, 53.8531, 20.3243)
Luminance0.5385 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C166 #667ED9
analogous
#D98766 #D9C166 #B8D966
triadic
#D9C166 #66D9C1 #C166D9
tetradic
#D9C166 #66D987 #667ED9 #D966B8
square
#D9C166 #66D987 #667ED9 #D966B8
split-complementary
#D9C166 #66B8D9 #8766D9
monochromatic
#9D8527 #CDAD35 #D9C166 #E5D597 #F1E9C8

Accessibility & contrast

On white

1.78
#D9C166 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.77
#D9C166 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C166
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C166#FFFFFF#000000##000000
##D9C1661.001.7811.7711.77
#FFFFFF1.781.0021.0021.00
#00000011.7721.001.001.00
##00000011.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BE5E
Deuteranopia (green-blind)
#D8C56A
Tritanopia (blue-blind)
#E8B5AC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d9c166;
/* rgb */ color: rgb(217, 193, 102);
/* oklch */ color: oklch(81.3% 0.115 94.9);
Tailwind
colors: {
  custom: {
    50: '#e7d394',
    500: '#d9c166',
    950: '#000000',
  },
}
SCSS
$custom: #d9c166;
$custom-light: #e7d394;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c166",
  "rgb": {
    "r": 217,
    "g": 193,
    "b": 102
  },
  "hsl": {
    "h": 47.478,
    "s": 60.209,
    "l": 62.549
  },
  "oklch": {
    "l": 0.81262,
    "c": 0.11475,
    "h": 94.9
  },
  "luminance": 0.53851
}

Semantic roles & 50–950 ramp

primary
#D9C166
secondary
#4256A1
accent
#41C81E
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140D
muted
#85837F

Preview Lab

Preview with #D9C166

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

Preview Lab → · Contrast checker → · Palette generator →

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