#D4C166#D4C166

#D4C166 is a light, moderate yellow. Relative luminance 0.531; OKLCH L 80.8% C 0.114 H 97.8°. Best body text is #000000 at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#D4C166
RGBrgb(212, 193, 102)
HSLhsl(50, 56%, 62%)
HSVhsv(50, 52%, 83%)
CMYKcmyk(0%, 9%, 51.9%, 16.9%)
CIE-LABlab(77.93, -5.00, 47.78)
CIE-LCHlch(77.93, 48.04, 95.97°)
OKLaboklab(80.81% -0.0154 0.113)
OKLCHoklch(80.81% 0.114 97.8)
XYZxyz(48.6212, 53.0982, 20.2557)
Luminance0.5310 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C166 #6679D4
analogous
#D48A66 #D4C166 #B0D466
triadic
#D4C166 #66D4C1 #C166D4
tetradic
#D4C166 #66D48A #6679D4 #D466B0
square
#D4C166 #66D48A #6679D4 #D466B0
split-complementary
#D4C166 #66B0D4 #8A66D4
monochromatic
#96832A #C5AD37 #D4C166 #E1D496 #EFE8C6

Accessibility & contrast

On white

1.81
#D4C166 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.62
#D4C166 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C166
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C166#FFFFFF#000000##000000
##D4C1661.001.8111.6211.62
#FFFFFF1.811.0021.0021.00
#00000011.6221.001.001.00
##00000011.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BD5E
Deuteranopia (green-blind)
#D6C46A
Tritanopia (blue-blind)
#E2B5AC
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d4c166;
/* rgb */ color: rgb(212, 193, 102);
/* oklch */ color: oklch(80.8% 0.114 97.8);
Tailwind
colors: {
  custom: {
    50: '#e3d394',
    500: '#d4c166',
    950: '#000000',
  },
}
SCSS
$custom: #d4c166;
$custom-light: #e3d394;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c166",
  "rgb": {
    "r": 212,
    "g": 193,
    "b": 102
  },
  "hsl": {
    "h": 49.636,
    "s": 56.122,
    "l": 61.569
  },
  "oklch": {
    "l": 0.80807,
    "c": 0.11407,
    "h": 97.8
  },
  "luminance": 0.53096
}

Semantic roles & 50–950 ramp

primary
#D4C166
secondary
#43539B
accent
#3EC422
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D4C166

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

Preview Lab → · Contrast checker → · Palette generator →

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