#D1D151#D1D151

#D1D151 is a very light, vivid yellow. Relative luminance 0.598; OKLCH L 83.7% C 0.148 H 109.2°. Best body text is #000000 at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#D1D151
RGBrgb(209, 209, 81)
HSLhsl(60, 58%, 57%)
HSVhsv(60, 61%, 82%)
CMYKcmyk(0%, 0%, 61.2%, 18%)
CIE-LABlab(81.70, -15.95, 61.50)
CIE-LCHlch(81.70, 63.53, 104.54°)
OKLaboklab(83.68% -0.0488 0.1401)
OKLCHoklch(83.68% 0.148 109.2)
XYZxyz(50.5817, 59.7517, 16.6517)
Luminance0.5975 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D151 #5151D1
analogous
#D19151 #D1D151 #91D151
triadic
#D1D151 #51D1D1 #D151D1
tetradic
#D1D151 #51D191 #5151D1 #D15191
square
#D1D151 #51D191 #5151D1 #D15191
split-complementary
#D1D151 #5191D1 #9151D1
monochromatic
#858523 #B5B530 #D1D151 #DEDE81 #EBEBB2

Accessibility & contrast

On white

1.62
#D1D151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.95
#D1D151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1D151
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1D151#FFFFFF#000000##000000
##D1D1511.001.6212.9512.95
#FFFFFF1.621.0021.0021.00
#00000012.9521.001.001.00
##00000012.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C941
Deuteranopia (green-blind)
#E2CD59
Tritanopia (blue-blind)
#DFC5B6
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d1d151;
/* rgb */ color: rgb(209, 209, 81);
/* oklch */ color: oklch(83.7% 0.148 109.2);
Tailwind
colors: {
  custom: {
    50: '#e2de87',
    500: '#d1d151',
    950: '#000000',
  },
}
SCSS
$custom: #d1d151;
$custom-light: #e2de87;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d151",
  "rgb": {
    "r": 209,
    "g": 209,
    "b": 81
  },
  "hsl": {
    "h": 60,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.83677,
    "c": 0.14837,
    "h": 109.2
  },
  "luminance": 0.5975
}

Semantic roles & 50–950 ramp

primary
#D1D151
secondary
#3B3B8B
accent
#46E146
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D1D151

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

Preview Lab → · Contrast checker → · Palette generator →

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