#D8D74C#D8D74C

#D8D74C is a very light, vivid yellow. Relative luminance 0.637; OKLCH L 85.5% C 0.157 H 108.9°. Best body text is #000000 at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#D8D74C
RGBrgb(216, 215, 76)
HSLhsl(60, 64%, 57%)
HSVhsv(60, 65%, 85%)
CMYKcmyk(0%, 0.5%, 64.8%, 15.3%)
CIE-LABlab(83.82, -16.34, 65.92)
CIE-LCHlch(83.82, 67.92, 103.92°)
OKLaboklab(85.49% -0.0509 0.1485)
OKLCHoklch(85.49% 0.157 108.9)
XYZxyz(53.9256, 63.7232, 16.2953)
Luminance0.6372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D74C #4C4DD8
analogous
#D8914C #D8D74C #93D84C
triadic
#D8D74C #4CD8D7 #D74CD8
tetradic
#D8D74C #4CD891 #4C4DD8 #D84C93
square
#D8D74C #4CD891 #4C4DD8 #D84C93
split-complementary
#D8D74C #4C93D8 #914CD8
monochromatic
#8B8A1E #BEBC29 #D8D74C #E3E27E #EEEDB1

Accessibility & contrast

On white

1.53
#D8D74C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.74
#D8D74C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D74C
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D74C#FFFFFF#000000##000000
##D8D74C1.001.5313.7413.74
#FFFFFF1.531.0021.0021.00
#00000013.7421.001.001.00
##00000013.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CE39
Deuteranopia (green-blind)
#EAD355
Tritanopia (blue-blind)
#E7CABB
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d8d74c;
/* rgb */ color: rgb(216, 215, 76);
/* oklch */ color: oklch(85.5% 0.157 108.9);
Tailwind
colors: {
  custom: {
    50: '#e7e385',
    500: '#d8d74c',
    950: '#000000',
  },
}
SCSS
$custom: #d8d74c;
$custom-light: #e7e385;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d74c",
  "rgb": {
    "r": 216,
    "g": 215,
    "b": 76
  },
  "hsl": {
    "h": 59.571,
    "s": 64.22,
    "l": 57.255
  },
  "oklch": {
    "l": 0.8549,
    "c": 0.15699,
    "h": 108.9
  },
  "luminance": 0.63722
}

Semantic roles & 50–950 ramp

primary
#D8D74C
secondary
#373891
accent
#42E741
background
#FFFEFC
surface
#FEFCF3
border
#D6D5CD
text
#16150B
muted
#85847E

Preview Lab

Preview with #D8D74C

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

Preview Lab → · Contrast checker → · Palette generator →

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