#D8D173#D8D173

#D8D173 is a very light, moderate yellow. Relative luminance 0.614; OKLCH L 84.7% C 0.117 H 104.8°. Best body text is #000000 at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#D8D173
RGBrgb(216, 209, 115)
HSLhsl(56, 56%, 65%)
HSVhsv(56, 47%, 85%)
CMYKcmyk(0%, 3.2%, 46.8%, 15.3%)
CIE-LABlab(82.61, -10.40, 47.20)
CIE-LCHlch(82.61, 48.33, 102.42°)
OKLaboklab(84.65% -0.0299 0.1128)
OKLCHoklch(84.65% 0.117 104.8)
XYZxyz(54.2152, 61.4392, 25.2194)
Luminance0.6144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D173 #737AD8
analogous
#D89F73 #D8D173 #ACD873
triadic
#D8D173 #73D8D1 #D173D8
tetradic
#D8D173 #73D89F #737AD8 #D873AC
square
#D8D173 #73D89F #737AD8 #D873AC
split-complementary
#D8D173 #73ACD8 #9F73D8
monochromatic
#A39B2D #CBC143 #D8D173 #E5E1A3 #F3F0D3

Accessibility & contrast

On white

1.58
#D8D173 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.29
#D8D173 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D173
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D173#FFFFFF#000000##000000
##D8D1731.001.5813.2913.29
#FFFFFF1.581.0021.0021.00
#00000013.2921.001.001.00
##00000013.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFCB6B
Deuteranopia (green-blind)
#E2D077
Tritanopia (blue-blind)
#E5C6BB
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d8d173;
/* rgb */ color: rgb(216, 209, 115);
/* oklch */ color: oklch(84.7% 0.117 104.8);
Tailwind
colors: {
  custom: {
    50: '#e6de9d',
    500: '#d8d173',
    950: '#000000',
  },
}
SCSS
$custom: #d8d173;
$custom-light: #e6de9d;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d173",
  "rgb": {
    "r": 216,
    "g": 209,
    "b": 115
  },
  "hsl": {
    "h": 55.842,
    "s": 56.425,
    "l": 64.902
  },
  "oklch": {
    "l": 0.84651,
    "c": 0.11664,
    "h": 104.8
  },
  "luminance": 0.61438
}

Semantic roles & 50–950 ramp

primary
#D8D173
secondary
#484FA7
accent
#2DC422
background
#FEFEFC
surface
#FDFCF5
border
#D5D5CF
text
#16150E
muted
#84847F

Preview Lab

Preview with #D8D173

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

Preview Lab → · Contrast checker → · Palette generator →

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