#D8D251#D8D251

#D8D251 is a very light, vivid yellow. Relative luminance 0.613; OKLCH L 84.5% C 0.148 H 106.6°. Best body text is #000000 at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#D8D251
RGBrgb(216, 210, 81)
HSLhsl(57, 63%, 58%)
HSVhsv(57, 63%, 85%)
CMYKcmyk(0%, 2.8%, 62.5%, 15.3%)
CIE-LABlab(82.53, -13.55, 62.55)
CIE-LCHlch(82.53, 64.00, 102.22°)
OKLaboklab(84.48% -0.0425 0.1422)
OKLCHoklch(84.48% 0.148 106.6)
XYZxyz(52.8525, 61.2879, 16.8287)
Luminance0.6129 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D251 #5157D8
analogous
#D88E51 #D8D251 #9BD851
triadic
#D8D251 #51D8D2 #D251D8
tetradic
#D8D251 #51D88E #5157D8 #D8519B
square
#D8D251 #51D88E #5157D8 #D8519B
split-complementary
#D8D251 #519BD8 #8E51D8
monochromatic
#8F8A20 #C1BA2B #D8D251 #E3DF83 #EEECB5

Accessibility & contrast

On white

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

On black

13.26
#D8D251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D251
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D251#FFFFFF#000000##000000
##D8D2511.001.5813.2613.26
#FFFFFF1.581.0021.0021.00
#00000013.2621.001.001.00
##00000013.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CA41
Deuteranopia (green-blind)
#E6D059
Tritanopia (blue-blind)
#E7C5B7
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d8d251;
/* rgb */ color: rgb(216, 210, 81);
/* oklch */ color: oklch(84.5% 0.148 106.6);
Tailwind
colors: {
  custom: {
    50: '#e7df88',
    500: '#d8d251',
    950: '#000000',
  },
}
SCSS
$custom: #d8d251;
$custom-light: #e7df88;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d251",
  "rgb": {
    "r": 216,
    "g": 210,
    "b": 81
  },
  "hsl": {
    "h": 57.333,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.84476,
    "c": 0.14836,
    "h": 106.6
  },
  "luminance": 0.61286
}

Semantic roles & 50–950 ramp

primary
#D8D251
secondary
#393D94
accent
#49E641
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8D251

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

Preview Lab → · Contrast checker → · Palette generator →

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