#D5D040#D5D040

#D5D040 is a very light, vivid yellow. Relative luminance 0.596; OKLCH L 83.7% C 0.159 H 107.4°. Best body text is #000000 at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#D5D040
RGBrgb(213, 208, 64)
HSLhsl(58, 64%, 54%)
HSVhsv(58, 70%, 84%)
CMYKcmyk(0%, 2.3%, 70%, 16.5%)
CIE-LABlab(81.64, -14.75, 68.18)
CIE-LCHlch(81.64, 69.75, 102.21°)
OKLaboklab(83.66% -0.0474 0.1514)
OKLCHoklch(83.66% 0.159 107.4)
XYZxyz(50.9238, 59.6298, 13.6767)
Luminance0.5963 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D040 #4045D5
analogous
#D58640 #D5D040 #8FD540
triadic
#D5D040 #40D5D0 #D040D5
tetradic
#D5D040 #40D586 #4045D5 #D5408F
square
#D5D040 #40D586 #4045D5 #D5408F
split-complementary
#D5D040 #408FD5 #8640D5
monochromatic
#7F7B1C #B1AC27 #D5D040 #E0DC72 #EBE9A4

Accessibility & contrast

On white

1.62
#D5D040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.93
#D5D040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D040
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D040#FFFFFF#000000##000000
##D5D0401.001.6212.9312.93
#FFFFFF1.621.0021.0021.00
#00000012.9321.001.001.00
##00000012.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C828
Deuteranopia (green-blind)
#E4CD4A
Tritanopia (blue-blind)
#E4C2B4
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d5d040;
/* rgb */ color: rgb(213, 208, 64);
/* oklch */ color: oklch(83.7% 0.159 107.4);
Tailwind
colors: {
  custom: {
    50: '#e6de7e',
    500: '#d5d040',
    950: '#000000',
  },
}
SCSS
$custom: #d5d040;
$custom-light: #e6de7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d040",
  "rgb": {
    "r": 213,
    "g": 208,
    "b": 64
  },
  "hsl": {
    "h": 57.987,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.83663,
    "c": 0.15867,
    "h": 107.4
  },
  "luminance": 0.59628
}

Semantic roles & 50–950 ramp

primary
#D5D040
secondary
#333686
accent
#46E741
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150A
muted
#85847D

Preview Lab

Preview with #D5D040

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

Preview Lab → · Contrast checker → · Palette generator →

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