#D5D940#D5D940

#D5D940 is a very light, vivid yellow. Relative luminance 0.641; OKLCH L 85.6% C 0.167 H 111.0°. Best body text is #000000 at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#D5D940
RGBrgb(213, 217, 64)
HSLhsl(62, 67%, 55%)
HSVhsv(62, 71%, 85%)
CMYKcmyk(1.8%, 0%, 70.5%, 14.9%)
CIE-LABlab(84.04, -19.20, 70.52)
CIE-LCHlch(84.04, 73.08, 105.23°)
OKLaboklab(85.58% -0.0599 0.1564)
OKLCHoklch(85.58% 0.167 111)
XYZxyz(53.1806, 64.1434, 14.4290)
Luminance0.6414 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D940 #4440D9
analogous
#D99140 #D5D940 #88D940
triadic
#D5D940 #40D5D9 #D940D5
tetradic
#D5D940 #40D991 #4440D9 #D94088
square
#D5D940 #40D991 #4440D9 #D94088
split-complementary
#D5D940 #4088D9 #9140D9
monochromatic
#82841A #B3B724 #D5D940 #E0E373 #EBEDA6

Accessibility & contrast

On white

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

On black

13.83
#D5D940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D940
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D940#FFFFFF#000000##000000
##D5D9401.001.5213.8313.83
#FFFFFF1.521.0021.0021.00
#00000013.8321.001.001.00
##00000013.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#EACF24
Deuteranopia (green-blind)
#EBD44C
Tritanopia (blue-blind)
#E4CCBB
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d5d940;
/* rgb */ color: rgb(213, 217, 64);
/* oklch */ color: oklch(85.6% 0.167 111.0);
Tailwind
colors: {
  custom: {
    50: '#e6e47f',
    500: '#d5d940',
    950: '#000000',
  },
}
SCSS
$custom: #d5d940;
$custom-light: #e6e47f;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d940",
  "rgb": {
    "r": 213,
    "g": 217,
    "b": 64
  },
  "hsl": {
    "h": 61.569,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.85582,
    "c": 0.16743,
    "h": 111
  },
  "luminance": 0.64142
}

Semantic roles & 50–950 ramp

primary
#D5D940
secondary
#35328B
accent
#3EEA43
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D5D940

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

Preview Lab → · Contrast checker → · Palette generator →

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