#D9D251#D9D251

#D9D251 is a very light, vivid yellow. Relative luminance 0.614; OKLCH L 84.6% C 0.148 H 106.2°. Best body text is #000000 at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#D9D251
RGBrgb(217, 210, 81)
HSLhsl(57, 64%, 58%)
HSVhsv(57, 63%, 85%)
CMYKcmyk(0%, 3.2%, 62.7%, 14.9%)
CIE-LABlab(82.62, -13.14, 62.67)
CIE-LCHlch(82.62, 64.03, 101.84°)
OKLaboklab(84.56% -0.0413 0.1424)
OKLCHoklch(84.56% 0.148 106.2)
XYZxyz(53.1489, 61.4408, 16.8426)
Luminance0.6144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D251 #5158D9
analogous
#D98E51 #D9D251 #9CD951
triadic
#D9D251 #51D9D2 #D251D9
tetradic
#D9D251 #51D98E #5158D9 #D9519C
square
#D9D251 #51D98E #5158D9 #D9519C
split-complementary
#D9D251 #519CD9 #8E51D9
monochromatic
#908A1F #C2BB2A #D9D251 #E4DF83 #EFECB5

Accessibility & contrast

On white

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

On black

13.29
#D9D251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D251
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D251#FFFFFF#000000##000000
##D9D2511.001.5813.2913.29
#FFFFFF1.581.0021.0021.00
#00000013.2921.001.001.00
##00000013.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CB41
Deuteranopia (green-blind)
#E6D059
Tritanopia (blue-blind)
#E8C5B7
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d9d251;
/* rgb */ color: rgb(217, 210, 81);
/* oklch */ color: oklch(84.6% 0.148 106.2);
Tailwind
colors: {
  custom: {
    50: '#e8df88',
    500: '#d9d251',
    950: '#000000',
  },
}
SCSS
$custom: #d9d251;
$custom-light: #e8df88;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d251",
  "rgb": {
    "r": 217,
    "g": 210,
    "b": 81
  },
  "hsl": {
    "h": 56.912,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.8456,
    "c": 0.14824,
    "h": 106.2
  },
  "luminance": 0.61439
}

Semantic roles & 50–950 ramp

primary
#D9D251
secondary
#393E95
accent
#49E741
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D9D251

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

Preview Lab → · Contrast checker → · Palette generator →

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