#D8D74F#D8D74F

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

Color values

HEX#D8D74F
RGBrgb(216, 215, 79)
HSLhsl(60, 64%, 58%)
HSVhsv(60, 63%, 85%)
CMYKcmyk(0%, 0.5%, 63.4%, 15.3%)
CIE-LABlab(83.84, -16.16, 64.75)
CIE-LCHlch(83.84, 66.74, 104.01°)
OKLaboklab(85.52% -0.0501 0.1465)
OKLCHoklch(85.52% 0.155 108.9)
XYZxyz(54.0324, 63.7659, 16.8574)
Luminance0.6376 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D74F #4F50D8
analogous
#D8924F #D8D74F #94D84F
triadic
#D8D74F #4FD8D7 #D74FD8
tetradic
#D8D74F #4FD892 #4F50D8 #D84F94
square
#D8D74F #4FD892 #4F50D8 #D84F94
split-complementary
#D8D74F #4F94D8 #924FD8
monochromatic
#8D8C1F #BFBE2A #D8D74F #E3E281 #EEEEB3

Accessibility & contrast

On white

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

On black

13.75
#D8D74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D74F
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D74F#FFFFFF#000000##000000
##D8D74F1.001.5313.7513.75
#FFFFFF1.531.0021.0021.00
#00000013.7521.001.001.00
##00000013.7521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d8d74f;
/* rgb */ color: rgb(216, 215, 79);
/* oklch */ color: oklch(85.5% 0.155 108.9);
Tailwind
colors: {
  custom: {
    50: '#e7e387',
    500: '#d8d74f',
    950: '#000000',
  },
}
SCSS
$custom: #d8d74f;
$custom-light: #e7e387;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d74f",
  "rgb": {
    "r": 216,
    "g": 215,
    "b": 79
  },
  "hsl": {
    "h": 59.562,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.85515,
    "c": 0.15483,
    "h": 108.9
  },
  "luminance": 0.63764
}

Semantic roles & 50–950 ramp

primary
#D8D74F
secondary
#383993
accent
#42E741
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8D74F

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

Preview Lab → · Contrast checker → · Palette generator →

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