#D8D74B#D8D74B

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

Color values

HEX#D8D74B
RGBrgb(216, 215, 75)
HSLhsl(60, 64%, 57%)
HSVhsv(60, 65%, 85%)
CMYKcmyk(0%, 0.5%, 65.3%, 15.3%)
CIE-LABlab(83.81, -16.40, 66.30)
CIE-LCHlch(83.81, 68.30, 103.89°)
OKLaboklab(85.48% -0.0511 0.1492)
OKLCHoklch(85.48% 0.158 108.9)
XYZxyz(53.8911, 63.7094, 16.1136)
Luminance0.6371 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D74B #4B4CD8
analogous
#D8904B #D8D74B #93D84B
triadic
#D8D74B #4BD8D7 #D74BD8
tetradic
#D8D74B #4BD890 #4B4CD8 #D84B93
square
#D8D74B #4BD890 #4B4CD8 #D84B93
split-complementary
#D8D74B #4B93D8 #904BD8
monochromatic
#8B8A1E #BDBC29 #D8D74B #E3E27D #EEEDB0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D8D74B#FFFFFF#000000##000000
##D8D74B1.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)
#E8CE37
Deuteranopia (green-blind)
#EAD354
Tritanopia (blue-blind)
#E7CABB
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d8d74b;
/* rgb */ color: rgb(216, 215, 75);
/* oklch */ color: oklch(85.5% 0.158 108.9);
Tailwind
colors: {
  custom: {
    50: '#e7e385',
    500: '#d8d74b',
    950: '#000000',
  },
}
SCSS
$custom: #d8d74b;
$custom-light: #e7e385;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d74b",
  "rgb": {
    "r": 216,
    "g": 215,
    "b": 75
  },
  "hsl": {
    "h": 59.574,
    "s": 64.384,
    "l": 57.059
  },
  "oklch": {
    "l": 0.85482,
    "c": 0.15769,
    "h": 108.9
  },
  "luminance": 0.63708
}

Semantic roles & 50–950 ramp

primary
#D8D74B
secondary
#373790
accent
#42E740
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D8D74B

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

Preview Lab → · Contrast checker → · Palette generator →

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