#D9D151#D9D151

#D9D151 is a very light, vivid yellow. Relative luminance 0.609; OKLCH L 84.4% C 0.147 H 105.7°. Best body text is #000000 at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#D9D151
RGBrgb(217, 209, 81)
HSLhsl(56, 64%, 58%)
HSVhsv(56, 63%, 85%)
CMYKcmyk(0%, 3.7%, 62.7%, 14.9%)
CIE-LABlab(82.35, -12.64, 62.38)
CIE-LCHlch(82.35, 63.65, 101.45°)
OKLaboklab(84.35% -0.0399 0.1418)
OKLCHoklch(84.35% 0.147 105.7)
XYZxyz(52.9028, 60.9485, 16.7605)
Luminance0.6095 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D151 #5159D9
analogous
#D98D51 #D9D151 #9DD951
triadic
#D9D151 #51D9D1 #D151D9
tetradic
#D9D151 #51D98D #5159D9 #D9519D
square
#D9D151 #51D98D #5159D9 #D9519D
split-complementary
#D9D151 #519DD9 #8D51D9
monochromatic
#90891F #C2B92A #D9D151 #E4DE83 #EFECB5

Accessibility & contrast

On white

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

On black

13.19
#D9D151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D151
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D151#FFFFFF#000000##000000
##D9D1511.001.5913.1913.19
#FFFFFF1.591.0021.0021.00
#00000013.1921.001.001.00
##00000013.1921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d9d151;
/* rgb */ color: rgb(217, 209, 81);
/* oklch */ color: oklch(84.4% 0.147 105.7);
Tailwind
colors: {
  custom: {
    50: '#e8de88',
    500: '#d9d151',
    950: '#000000',
  },
}
SCSS
$custom: #d9d151;
$custom-light: #e8de88;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d151",
  "rgb": {
    "r": 217,
    "g": 209,
    "b": 81
  },
  "hsl": {
    "h": 56.471,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.8435,
    "c": 0.14729,
    "h": 105.7
  },
  "luminance": 0.60947
}

Semantic roles & 50–950 ramp

primary
#D9D151
secondary
#393E95
accent
#4AE741
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D9D151

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

Preview Lab → · Contrast checker → · Palette generator →

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