#D1D87F#D1D87F

#D1D87F is a very light, moderate yellow. Relative luminance 0.642; OKLCH L 85.7% C 0.113 H 112.4°. Best body text is #000000 at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#D1D87F
RGBrgb(209, 216, 127)
HSLhsl(65, 53%, 67%)
HSVhsv(65, 41%, 85%)
CMYKcmyk(3.2%, 0%, 41.2%, 15.3%)
CIE-LABlab(84.07, -15.48, 42.99)
CIE-LCHlch(84.07, 45.70, 109.81°)
OKLaboklab(85.73% -0.043 0.1042)
OKLCHoklch(85.73% 0.113 112.4)
XYZxyz(54.6818, 64.2002, 29.5858)
Luminance0.6420 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D87F #867FD8
analogous
#D8B37F #D1D87F #A5D87F
triadic
#D1D87F #7FD1D8 #D87FD1
tetradic
#D1D87F #7FD8B3 #867FD8 #D87FA5
square
#D1D87F #7FD8B3 #867FD8 #D87FA5
split-complementary
#D1D87F #7FA5D8 #B37FD8
monochromatic
#A0A934 #C0CA50 #D1D87F #E2E6AE #F3F5DD

Accessibility & contrast

On white

1.52
#D1D87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.84
#D1D87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1D87F
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1D87F#FFFFFF#000000##000000
##D1D87F1.001.5213.8413.84
#FFFFFF1.521.0021.0021.00
#00000013.8421.001.001.00
##00000013.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4D078
Deuteranopia (green-blind)
#E4D383
Tritanopia (blue-blind)
#DBCEC2
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d1d87f;
/* rgb */ color: rgb(209, 216, 127);
/* oklch */ color: oklch(85.7% 0.113 112.4);
Tailwind
colors: {
  custom: {
    50: '#e0e4a5',
    500: '#d1d87f',
    950: '#000000',
  },
}
SCSS
$custom: #d1d87f;
$custom-light: #e0e4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d87f",
  "rgb": {
    "r": 209,
    "g": 216,
    "b": 127
  },
  "hsl": {
    "h": 64.719,
    "s": 53.293,
    "l": 67.255
  },
  "oklch": {
    "l": 0.85725,
    "c": 0.11275,
    "h": 112.4
  },
  "luminance": 0.64199
}

Semantic roles & 50–950 ramp

primary
#D1D87F
secondary
#564FAC
accent
#25C131
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#15150F
muted
#848480

Preview Lab

Preview with #D1D87F

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

Preview Lab → · Contrast checker → · Palette generator →

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