#D1D852#D1D852

#D1D852 is a very light, vivid yellow. Relative luminance 0.633; OKLCH L 85.2% C 0.155 H 112.1°. Best body text is #000000 at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#D1D852
RGBrgb(209, 216, 82)
HSLhsl(63, 63%, 58%)
HSVhsv(63, 62%, 85%)
CMYKcmyk(3.2%, 0%, 62%, 15.3%)
CIE-LABlab(83.59, -19.34, 63.10)
CIE-LCHlch(83.59, 65.99, 107.04°)
OKLaboklab(85.19% -0.0583 0.1436)
OKLCHoklch(85.19% 0.155 112.1)
XYZxyz(52.3748, 63.2774, 17.4358)
Luminance0.6328 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D852 #5952D8
analogous
#D89C52 #D1D852 #8ED852
triadic
#D1D852 #52D1D8 #D852D1
tetradic
#D1D852 #52D89C #5952D8 #D8528E
square
#D1D852 #52D89C #5952D8 #D8528E
split-complementary
#D1D852 #528ED8 #9C52D8
monochromatic
#898F20 #B9C12C #D1D852 #DEE384 #ECEFB6

Accessibility & contrast

On white

1.54
#D1D852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.66
#D1D852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1D852
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1D852#FFFFFF#000000##000000
##D1D8521.001.5413.6613.66
#FFFFFF1.541.0021.0021.00
#00000013.6621.001.001.00
##00000013.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CF41
Deuteranopia (green-blind)
#E8D25B
Tritanopia (blue-blind)
#DECCBC
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #d1d852;
/* rgb */ color: rgb(209, 216, 82);
/* oklch */ color: oklch(85.2% 0.155 112.1);
Tailwind
colors: {
  custom: {
    50: '#e2e389',
    500: '#d1d852',
    950: '#000000',
  },
}
SCSS
$custom: #d1d852;
$custom-light: #e2e389;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d852",
  "rgb": {
    "r": 209,
    "g": 216,
    "b": 82
  },
  "hsl": {
    "h": 63.134,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.85185,
    "c": 0.15499,
    "h": 112.1
  },
  "luminance": 0.63276
}

Semantic roles & 50–950 ramp

primary
#D1D852
secondary
#3E3995
accent
#42E64A
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D1D852

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

Preview Lab → · Contrast checker → · Palette generator →

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