#D5D939#D5D939

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

Color values

HEX#D5D939
RGBrgb(213, 217, 57)
HSLhsl(62, 68%, 54%)
HSVhsv(62, 74%, 85%)
CMYKcmyk(1.8%, 0%, 73.7%, 14.9%)
CIE-LABlab(84.00, -19.51, 72.82)
CIE-LCHlch(84.00, 75.39, 105.00°)
OKLaboklab(85.54% -0.0614 0.16)
OKLCHoklch(85.54% 0.171 111)
XYZxyz(52.9938, 64.0687, 13.4450)
Luminance0.6407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D939 #3D39D9
analogous
#D98D39 #D5D939 #85D939
triadic
#D5D939 #39D5D9 #D939D5
tetradic
#D5D939 #39D98D #3D39D9 #D93985
square
#D5D939 #39D98D #3D39D9 #D93985
split-complementary
#D5D939 #3985D9 #8D39D9
monochromatic
#7D7F18 #AFB322 #D5D939 #E0E36C #EBEDA0

Accessibility & contrast

On white

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

On black

13.81
#D5D939 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D939
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D939#FFFFFF#000000##000000
##D5D9391.001.5213.8113.81
#FFFFFF1.521.0021.0021.00
#00000013.8121.001.001.00
##00000013.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d5d939;
/* rgb */ color: rgb(213, 217, 57);
/* oklch */ color: oklch(85.5% 0.171 111.0);
Tailwind
colors: {
  custom: {
    50: '#e6e47b',
    500: '#d5d939',
    950: '#000000',
  },
}
SCSS
$custom: #d5d939;
$custom-light: #e6e47b;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d939",
  "rgb": {
    "r": 213,
    "g": 217,
    "b": 57
  },
  "hsl": {
    "h": 61.5,
    "s": 67.797,
    "l": 53.725
  },
  "oklch": {
    "l": 0.85539,
    "c": 0.17139,
    "h": 111
  },
  "luminance": 0.64067
}

Semantic roles & 50–950 ramp

primary
#D5D939
secondary
#323086
accent
#3DEB41
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150A
muted
#85847D

Preview Lab

Preview with #D5D939

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

Preview Lab → · Contrast checker → · Palette generator →

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