#D1D052#D1D052

#D1D052 is a very light, vivid yellow. Relative luminance 0.593; OKLCH L 83.5% C 0.147 H 108.8°. Best body text is #000000 at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#D1D052
RGBrgb(209, 208, 82)
HSLhsl(60, 58%, 57%)
HSVhsv(60, 61%, 82%)
CMYKcmyk(0%, 0.5%, 60.8%, 18%)
CIE-LABlab(81.44, -15.38, 60.80)
CIE-LCHlch(81.44, 62.72, 104.20°)
OKLaboklab(83.47% -0.0471 0.1388)
OKLCHoklch(83.47% 0.147 108.8)
XYZxyz(50.3749, 59.2777, 16.7691)
Luminance0.5928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D052 #5253D1
analogous
#D19152 #D1D052 #92D152
triadic
#D1D052 #52D1D0 #D052D1
tetradic
#D1D052 #52D191 #5253D1 #D15292
square
#D1D052 #52D191 #5253D1 #D15292
split-complementary
#D1D052 #5292D1 #9152D1
monochromatic
#858423 #B6B430 #D1D052 #DEDD82 #EBEAB3

Accessibility & contrast

On white

1.63
#D1D052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.86
#D1D052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1D052
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1D052#FFFFFF#000000##000000
##D1D0521.001.6312.8612.86
#FFFFFF1.631.0021.0021.00
#00000012.8621.001.001.00
##00000012.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C843
Deuteranopia (green-blind)
#E2CC5A
Tritanopia (blue-blind)
#DFC4B5
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d1d052;
/* rgb */ color: rgb(209, 208, 82);
/* oklch */ color: oklch(83.5% 0.147 108.8);
Tailwind
colors: {
  custom: {
    50: '#e2de88',
    500: '#d1d052',
    950: '#000000',
  },
}
SCSS
$custom: #d1d052;
$custom-light: #e2de88;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d052",
  "rgb": {
    "r": 209,
    "g": 208,
    "b": 82
  },
  "hsl": {
    "h": 59.528,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.83473,
    "c": 0.14655,
    "h": 108.8
  },
  "luminance": 0.59276
}

Semantic roles & 50–950 ramp

primary
#D1D052
secondary
#3B3C8C
accent
#48E147
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D1D052

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

Preview Lab → · Contrast checker → · Palette generator →

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