#D7C166#D7C166

#D7C166 is a light, moderate yellow. Relative luminance 0.535; OKLCH L 81.1% C 0.114 H 96.0°. Best body text is #000000 at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#D7C166
RGBrgb(215, 193, 102)
HSLhsl(48, 59%, 62%)
HSVhsv(48, 53%, 84%)
CMYKcmyk(0%, 10.2%, 52.6%, 15.7%)
CIE-LABlab(78.20, -3.76, 48.16)
CIE-LCHlch(78.20, 48.31, 94.47°)
OKLaboklab(81.08% -0.0121 0.1138)
OKLCHoklch(81.08% 0.114 96)
XYZxyz(49.4943, 53.5484, 20.2966)
Luminance0.5355 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C166 #667CD7
analogous
#D78966 #D7C166 #B4D766
triadic
#D7C166 #66D7C1 #C166D7
tetradic
#D7C166 #66D789 #667CD7 #D766B4
square
#D7C166 #66D789 #667CD7 #D766B4
split-complementary
#D7C166 #66B4D7 #8966D7
monochromatic
#9A8428 #CAAD35 #D7C166 #E4D597 #F0E8C7

Accessibility & contrast

On white

1.79
#D7C166 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.71
#D7C166 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C166
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C166#FFFFFF#000000##000000
##D7C1661.001.7911.7111.71
#FFFFFF1.791.0021.0021.00
#00000011.7121.001.001.00
##00000011.7121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d7c166;
/* rgb */ color: rgb(215, 193, 102);
/* oklch */ color: oklch(81.1% 0.114 96.0);
Tailwind
colors: {
  custom: {
    50: '#e6d394',
    500: '#d7c166',
    950: '#000000',
  },
}
SCSS
$custom: #d7c166;
$custom-light: #e6d394;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c166",
  "rgb": {
    "r": 215,
    "g": 193,
    "b": 102
  },
  "hsl": {
    "h": 48.319,
    "s": 58.549,
    "l": 62.157
  },
  "oklch": {
    "l": 0.81079,
    "c": 0.11444,
    "h": 96
  },
  "luminance": 0.53546
}

Semantic roles & 50–950 ramp

primary
#D7C166
secondary
#42549F
accent
#40C61F
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D7C166

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

Preview Lab → · Contrast checker → · Palette generator →

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