#D1D152#D1D152

#D1D152 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#D1D152
RGBrgb(209, 209, 82)
HSLhsl(60, 58%, 57%)
HSVhsv(60, 61%, 82%)
CMYKcmyk(0%, 0%, 60.8%, 18%)
CIE-LABlab(81.71, -15.88, 61.09)
CIE-LCHlch(81.71, 63.12, 104.57°)
OKLaboklab(83.69% -0.0486 0.1394)
OKLCHoklch(83.69% 0.148 109.2)
XYZxyz(50.6195, 59.7668, 16.8507)
Luminance0.5977 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D152 #5252D1
analogous
#D19252 #D1D152 #92D152
triadic
#D1D152 #52D1D1 #D152D1
tetradic
#D1D152 #52D192 #5252D1 #D15292
square
#D1D152 #52D192 #5252D1 #D15292
split-complementary
#D1D152 #5292D1 #9252D1
monochromatic
#858523 #B6B630 #D1D152 #DEDE82 #EBEBB3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D1D152#FFFFFF#000000##000000
##D1D1521.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)
#E1C943
Deuteranopia (green-blind)
#E2CD5A
Tritanopia (blue-blind)
#DFC5B6
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d1d152;
/* rgb */ color: rgb(209, 209, 82);
/* oklch */ color: oklch(83.7% 0.148 109.2);
Tailwind
colors: {
  custom: {
    50: '#e2de88',
    500: '#d1d152',
    950: '#000000',
  },
}
SCSS
$custom: #d1d152;
$custom-light: #e2de88;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d152",
  "rgb": {
    "r": 209,
    "g": 209,
    "b": 82
  },
  "hsl": {
    "h": 60,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.83686,
    "c": 0.14758,
    "h": 109.2
  },
  "luminance": 0.59765
}

Semantic roles & 50–950 ramp

primary
#D1D152
secondary
#3B3B8C
accent
#47E147
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D1D152

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

Preview Lab → · Contrast checker → · Palette generator →

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