#D5D942#D5D942

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

Color values

HEX#D5D942
RGBrgb(213, 217, 66)
HSLhsl(62, 67%, 55%)
HSVhsv(62, 70%, 85%)
CMYKcmyk(1.8%, 0%, 69.6%, 14.9%)
CIE-LABlab(84.05, -19.10, 69.82)
CIE-LCHlch(84.05, 72.39, 105.30°)
OKLaboklab(85.6% -0.0594 0.1552)
OKLCHoklch(85.6% 0.166 111)
XYZxyz(53.2385, 64.1666, 14.7341)
Luminance0.6417 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D942 #4642D9
analogous
#D99142 #D5D942 #8AD942
triadic
#D5D942 #42D5D9 #D942D5
tetradic
#D5D942 #42D991 #4642D9 #D9428A
square
#D5D942 #42D991 #4642D9 #D9428A
split-complementary
#D5D942 #428AD9 #9142D9
monochromatic
#83861B #B5B925 #D5D942 #E0E375 #ECEDA8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D5D942#FFFFFF#000000##000000
##D5D9421.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)
#EACF28
Deuteranopia (green-blind)
#EBD44D
Tritanopia (blue-blind)
#E4CCBB
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d5d942;
/* rgb */ color: rgb(213, 217, 66);
/* oklch */ color: oklch(85.6% 0.166 111.0);
Tailwind
colors: {
  custom: {
    50: '#e5e480',
    500: '#d5d942',
    950: '#000000',
  },
}
SCSS
$custom: #d5d942;
$custom-light: #e5e480;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d942",
  "rgb": {
    "r": 213,
    "g": 217,
    "b": 66
  },
  "hsl": {
    "h": 61.589,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.85596,
    "c": 0.16621,
    "h": 111
  },
  "luminance": 0.64165
}

Semantic roles & 50–950 ramp

primary
#D5D942
secondary
#35338C
accent
#3EE943
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D5D942

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

Preview Lab → · Contrast checker → · Palette generator →

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