#D7D166#D7D166

#D7D166 is a very light, vivid yellow. Relative luminance 0.610; OKLCH L 84.4% C 0.130 H 105.9°. Best body text is #000000 at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#D7D166
RGBrgb(215, 209, 102)
HSLhsl(57, 59%, 62%)
HSVhsv(57, 53%, 84%)
CMYKcmyk(0%, 2.8%, 52.6%, 15.7%)
CIE-LABlab(82.38, -11.94, 53.09)
CIE-LCHlch(82.38, 54.42, 102.68°)
OKLaboklab(84.4% -0.0356 0.1245)
OKLCHoklch(84.4% 0.13 105.9)
XYZxyz(53.2245, 61.0089, 21.5400)
Luminance0.6101 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D166 #666CD7
analogous
#D79966 #D7D166 #A5D766
triadic
#D7D166 #66D7D1 #D166D7
tetradic
#D7D166 #66D799 #666CD7 #D766A5
square
#D7D166 #66D799 #666CD7 #D766A5
split-complementary
#D7D166 #66A5D7 #9966D7
monochromatic
#9A9428 #CAC235 #D7D166 #E4E097 #F0EEC7

Accessibility & contrast

On white

1.59
#D7D166 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.20
#D7D166 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D166
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D166#FFFFFF#000000##000000
##D7D1661.001.5913.2013.20
#FFFFFF1.591.0021.0021.00
#00000013.2021.001.001.00
##00000013.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0CA5C
Deuteranopia (green-blind)
#E3CF6B
Tritanopia (blue-blind)
#E5C5B9
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d7d166;
/* rgb */ color: rgb(215, 209, 102);
/* oklch */ color: oklch(84.4% 0.130 105.9);
Tailwind
colors: {
  custom: {
    50: '#e6de95',
    500: '#d7d166',
    950: '#000000',
  },
}
SCSS
$custom: #d7d166;
$custom-light: #e6de95;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d166",
  "rgb": {
    "r": 215,
    "g": 209,
    "b": 102
  },
  "hsl": {
    "h": 56.814,
    "s": 58.549,
    "l": 62.157
  },
  "oklch": {
    "l": 0.844,
    "c": 0.12951,
    "h": 105.9
  },
  "luminance": 0.61007
}

Semantic roles & 50–950 ramp

primary
#D7D166
secondary
#42479F
accent
#28C61F
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D7D166

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

Preview Lab → · Contrast checker → · Palette generator →

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