#D5D251#D5D251

#D5D251 is a very light, vivid yellow. Relative luminance 0.608; OKLCH L 84.2% C 0.149 H 107.9°. Best body text is #000000 at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#D5D251
RGBrgb(213, 210, 81)
HSLhsl(59, 61%, 58%)
HSVhsv(59, 62%, 84%)
CMYKcmyk(0%, 1.4%, 62%, 16.5%)
CIE-LABlab(82.29, -14.79, 62.22)
CIE-LCHlch(82.29, 63.96, 103.37°)
OKLaboklab(84.22% -0.0458 0.1415)
OKLCHoklch(84.22% 0.149 107.9)
XYZxyz(51.9741, 60.8350, 16.7875)
Luminance0.6083 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D251 #5154D5
analogous
#D59051 #D5D251 #96D551
triadic
#D5D251 #51D5D2 #D251D5
tetradic
#D5D251 #51D590 #5154D5 #D55196
square
#D5D251 #51D590 #5154D5 #D55196
split-complementary
#D5D251 #5196D5 #9051D5
monochromatic
#8A8821 #BCB82D #D5D251 #E1DF82 #EDEBB4

Accessibility & contrast

On white

1.59
#D5D251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.17
#D5D251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D251
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D251#FFFFFF#000000##000000
##D5D2511.001.5913.1713.17
#FFFFFF1.591.0021.0021.00
#00000013.1721.001.001.00
##00000013.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CA41
Deuteranopia (green-blind)
#E5CF59
Tritanopia (blue-blind)
#E3C5B7
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d5d251;
/* rgb */ color: rgb(213, 210, 81);
/* oklch */ color: oklch(84.2% 0.149 107.9);
Tailwind
colors: {
  custom: {
    50: '#e5df88',
    500: '#d5d251',
    950: '#000000',
  },
}
SCSS
$custom: #d5d251;
$custom-light: #e5df88;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d251",
  "rgb": {
    "r": 213,
    "g": 210,
    "b": 81
  },
  "hsl": {
    "h": 58.636,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.84223,
    "c": 0.14876,
    "h": 107.9
  },
  "luminance": 0.60833
}

Semantic roles & 50–950 ramp

primary
#D5D251
secondary
#3A3C90
accent
#47E444
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D5D251

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

Preview Lab → · Contrast checker → · Palette generator →

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