#D1D640#D1D640

#D1D640 is a very light, vivid yellow. Relative luminance 0.620; OKLCH L 84.6% C 0.165 H 111.4°. Best body text is #000000 at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#D1D640
RGBrgb(209, 214, 64)
HSLhsl(62, 65%, 55%)
HSVhsv(62, 70%, 84%)
CMYKcmyk(2.3%, 0%, 70.1%, 16.1%)
CIE-LABlab(82.92, -19.39, 69.33)
CIE-LCHlch(82.92, 71.99, 105.62°)
OKLaboklab(84.61% -0.0602 0.154)
OKLCHoklch(84.61% 0.165 111.4)
XYZxyz(51.2681, 62.0199, 14.1199)
Luminance0.6202 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D640 #4540D6
analogous
#D69040 #D1D640 #86D640
triadic
#D1D640 #40D1D6 #D640D1
tetradic
#D1D640 #40D690 #4540D6 #D64086
square
#D1D640 #40D690 #4540D6 #D64086
split-complementary
#D1D640 #4086D6 #9040D6
monochromatic
#7D801B #AEB226 #D1D640 #DDE172 #E9ECA5

Accessibility & contrast

On white

1.57
#D1D640 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.40
#D1D640 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1D640
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1D640#FFFFFF#000000##000000
##D1D6401.001.5713.4013.40
#FFFFFF1.571.0021.0021.00
#00000013.4021.001.001.00
##00000013.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CC26
Deuteranopia (green-blind)
#E7D04B
Tritanopia (blue-blind)
#DFC9B9
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d1d640;
/* rgb */ color: rgb(209, 214, 64);
/* oklch */ color: oklch(84.6% 0.165 111.4);
Tailwind
colors: {
  custom: {
    50: '#e3e27e',
    500: '#d1d640',
    950: '#000000',
  },
}
SCSS
$custom: #d1d640;
$custom-light: #e3e27e;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d640",
  "rgb": {
    "r": 209,
    "g": 214,
    "b": 64
  },
  "hsl": {
    "h": 62,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.84613,
    "c": 0.16531,
    "h": 111.4
  },
  "luminance": 0.62019
}

Semantic roles & 50–950 ramp

primary
#D1D640
secondary
#363387
accent
#40E846
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D1D640

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

Preview Lab → · Contrast checker → · Palette generator →

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