#D1D840#D1D840

#D1D840 is a very light, vivid yellow. Relative luminance 0.630; OKLCH L 85.0% C 0.167 H 112.1°. Best body text is #000000 at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#D1D840
RGBrgb(209, 216, 64)
HSLhsl(63, 66%, 55%)
HSVhsv(63, 70%, 85%)
CMYKcmyk(3.2%, 0%, 70.4%, 15.3%)
CIE-LABlab(83.46, -20.36, 69.85)
CIE-LCHlch(83.46, 72.76, 106.25°)
OKLaboklab(85.04% -0.0629 0.1551)
OKLCHoklch(85.04% 0.167 112.1)
XYZxyz(51.7774, 63.0384, 14.2896)
Luminance0.6304 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D840 #4740D8
analogous
#D89340 #D1D840 #85D840
triadic
#D1D840 #40D1D8 #D840D1
tetradic
#D1D840 #40D893 #4740D8 #D84085
square
#D1D840 #40D893 #4740D8 #D84085
split-complementary
#D1D840 #4085D8 #9340D8
monochromatic
#7E831B #AFB625 #D1D840 #DDE273 #E9EDA6

Accessibility & contrast

On white

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

On black

13.61
#D1D840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1D840
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1D840#FFFFFF#000000##000000
##D1D8401.001.5413.6113.61
#FFFFFF1.541.0021.0021.00
#00000013.6121.001.001.00
##00000013.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CE25
Deuteranopia (green-blind)
#E9D24C
Tritanopia (blue-blind)
#DFCBBA
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #d1d840;
/* rgb */ color: rgb(209, 216, 64);
/* oklch */ color: oklch(85.0% 0.167 112.1);
Tailwind
colors: {
  custom: {
    50: '#e3e37f',
    500: '#d1d840',
    950: '#000000',
  },
}
SCSS
$custom: #d1d840;
$custom-light: #e3e37f;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d840",
  "rgb": {
    "r": 209,
    "g": 216,
    "b": 64
  },
  "hsl": {
    "h": 62.763,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.85044,
    "c": 0.16735,
    "h": 112.1
  },
  "luminance": 0.63037
}

Semantic roles & 50–950 ramp

primary
#D1D840
secondary
#37338A
accent
#3FE947
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D1D840

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

Preview Lab → · Contrast checker → · Palette generator →

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