#D5D151#D5D151

#D5D151 is a very light, vivid yellow. Relative luminance 0.603; OKLCH L 84.0% C 0.148 H 107.5°. Best body text is #000000 at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#D5D151
RGBrgb(213, 209, 81)
HSLhsl(58, 61%, 58%)
HSVhsv(58, 62%, 84%)
CMYKcmyk(0%, 1.9%, 62%, 16.5%)
CIE-LABlab(82.02, -14.29, 61.94)
CIE-LCHlch(82.02, 63.57, 102.99°)
OKLaboklab(84.01% -0.0444 0.1409)
OKLCHoklch(84.01% 0.148 107.5)
XYZxyz(51.7280, 60.3427, 16.7055)
Luminance0.6034 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D151 #5155D5
analogous
#D58F51 #D5D151 #97D551
triadic
#D5D151 #51D5D1 #D151D5
tetradic
#D5D151 #51D58F #5155D5 #D55197
square
#D5D151 #51D58F #5155D5 #D55197
split-complementary
#D5D151 #5197D5 #8F51D5
monochromatic
#8A8721 #BCB72D #D5D151 #E1DE82 #EDEBB4

Accessibility & contrast

On white

1.61
#D5D151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.07
#D5D151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D151
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D151#FFFFFF#000000##000000
##D5D1511.001.6113.0713.07
#FFFFFF1.611.0021.0021.00
#00000013.0721.001.001.00
##00000013.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C941
Deuteranopia (green-blind)
#E4CE59
Tritanopia (blue-blind)
#E3C4B6
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d5d151;
/* rgb */ color: rgb(213, 209, 81);
/* oklch */ color: oklch(84.0% 0.148 107.5);
Tailwind
colors: {
  custom: {
    50: '#e5de87',
    500: '#d5d151',
    950: '#000000',
  },
}
SCSS
$custom: #d5d151;
$custom-light: #e5de87;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d151",
  "rgb": {
    "r": 213,
    "g": 209,
    "b": 81
  },
  "hsl": {
    "h": 58.182,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.84011,
    "c": 0.14776,
    "h": 107.5
  },
  "luminance": 0.60341
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D5D151

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

Preview Lab → · Contrast checker → · Palette generator →

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