#D8D474#D8D474

#D8D474 is a very light, moderate yellow. Relative luminance 0.629; OKLCH L 85.3% C 0.119 H 106.6°. Best body text is #000000 at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#D8D474
RGBrgb(216, 212, 116)
HSLhsl(58, 56%, 65%)
HSVhsv(58, 46%, 85%)
CMYKcmyk(0%, 1.9%, 46.3%, 15.3%)
CIE-LABlab(83.42, -11.82, 47.69)
CIE-LCHlch(83.42, 49.13, 103.92°)
OKLaboklab(85.29% -0.0338 0.1139)
OKLCHoklch(85.29% 0.119 106.6)
XYZxyz(55.0160, 62.9483, 25.7717)
Luminance0.6295 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D474 #7478D8
analogous
#D8A274 #D8D474 #AAD874
triadic
#D8D474 #74D8D4 #D474D8
tetradic
#D8D474 #74D8A2 #7478D8 #D874AA
square
#D8D474 #74D8A2 #7478D8 #D874AA
split-complementary
#D8D474 #74AAD8 #A274D8
monochromatic
#A49F2E #CBC544 #D8D474 #E5E3A4 #F3F2D4

Accessibility & contrast

On white

1.55
#D8D474 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.59
#D8D474 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D474
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D474#FFFFFF#000000##000000
##D8D4741.001.5513.5913.59
#FFFFFF1.551.0021.0021.00
#00000013.5921.001.001.00
##00000013.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CD6C
Deuteranopia (green-blind)
#E4D278
Tritanopia (blue-blind)
#E5C9BD
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #d8d474;
/* rgb */ color: rgb(216, 212, 116);
/* oklch */ color: oklch(85.3% 0.119 106.6);
Tailwind
colors: {
  custom: {
    50: '#e6e19e',
    500: '#d8d474',
    950: '#000000',
  },
}
SCSS
$custom: #d8d474;
$custom-light: #e6e19e;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d474",
  "rgb": {
    "r": 216,
    "g": 212,
    "b": 116
  },
  "hsl": {
    "h": 57.6,
    "s": 56.18,
    "l": 65.098
  },
  "oklch": {
    "l": 0.85292,
    "c": 0.11883,
    "h": 106.6
  },
  "luminance": 0.62947
}

Semantic roles & 50–950 ramp

primary
#D8D474
secondary
#494DA7
accent
#28C422
background
#FEFEFC
surface
#FDFCF5
border
#D5D5CF
text
#16150E
muted
#84847F

Preview Lab

Preview with #D8D474

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

Preview Lab → · Contrast checker → · Palette generator →

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