#D5D842#D5D842

#D5D842 is a very light, vivid yellow. Relative luminance 0.637; OKLCH L 85.4% C 0.165 H 110.6°. Best body text is #000000 at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#D5D842
RGBrgb(213, 216, 66)
HSLhsl(61, 66%, 55%)
HSVhsv(61, 69%, 85%)
CMYKcmyk(1.4%, 0%, 69.4%, 15.3%)
CIE-LABlab(83.78, -18.61, 69.56)
CIE-LCHlch(83.78, 72.01, 104.98°)
OKLaboklab(85.38% -0.0581 0.1547)
OKLCHoklch(85.38% 0.165 110.6)
XYZxyz(52.9816, 63.6526, 14.6485)
Luminance0.6365 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D842 #4542D8
analogous
#D89042 #D5D842 #8AD842
triadic
#D5D842 #42D5D8 #D842D5
tetradic
#D5D842 #42D890 #4542D8 #D8428A
square
#D5D842 #42D890 #4542D8 #D8428A
split-complementary
#D5D842 #428AD8 #9042D8
monochromatic
#82841B #B4B726 #D5D842 #E0E275 #ECEDA7

Accessibility & contrast

On white

1.53
#D5D842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.73
#D5D842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D842
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D842#FFFFFF#000000##000000
##D5D8421.001.5313.7313.73
#FFFFFF1.531.0021.0021.00
#00000013.7321.001.001.00
##00000013.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9CF28
Deuteranopia (green-blind)
#EAD34D
Tritanopia (blue-blind)
#E4CBBB
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d5d842;
/* rgb */ color: rgb(213, 216, 66);
/* oklch */ color: oklch(85.4% 0.165 110.6);
Tailwind
colors: {
  custom: {
    50: '#e5e380',
    500: '#d5d842',
    950: '#000000',
  },
}
SCSS
$custom: #d5d842;
$custom-light: #e5e380;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d842",
  "rgb": {
    "r": 213,
    "g": 216,
    "b": 66
  },
  "hsl": {
    "h": 61.2,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.85382,
    "c": 0.16521,
    "h": 110.6
  },
  "luminance": 0.63651
}

Semantic roles & 50–950 ramp

primary
#D5D842
secondary
#35338B
accent
#3FE942
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D5D842

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

Preview Lab → · Contrast checker → · Palette generator →

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