#D7D939#D7D939

#D7D939 is a very light, vivid yellow. Relative luminance 0.644; OKLCH L 85.7% C 0.171 H 110.3°. Best body text is #000000 at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#D7D939
RGBrgb(215, 217, 57)
HSLhsl(61, 68%, 54%)
HSVhsv(61, 74%, 85%)
CMYKcmyk(0.9%, 0%, 73.7%, 14.9%)
CIE-LABlab(84.16, -18.68, 73.03)
CIE-LCHlch(84.16, 75.38, 104.35°)
OKLaboklab(85.7% -0.0592 0.1604)
OKLCHoklch(85.7% 0.171 110.3)
XYZxyz(53.5776, 64.3697, 13.4724)
Luminance0.6437 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D939 #3B39D9
analogous
#D98B39 #D7D939 #87D939
triadic
#D7D939 #39D7D9 #D939D7
tetradic
#D7D939 #39D98B #3B39D9 #D93987
square
#D7D939 #39D98B #3B39D9 #D93987
split-complementary
#D7D939 #3987D9 #8B39D9
monochromatic
#7E7F18 #B1B322 #D7D939 #E1E36C #ECEDA0

Accessibility & contrast

On white

1.51
#D7D939 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.87
#D7D939 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D939
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D939#FFFFFF#000000##000000
##D7D9391.001.5113.8713.87
#FFFFFF1.511.0021.0021.00
#00000013.8721.001.001.00
##00000013.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD014
Deuteranopia (green-blind)
#ECD446
Tritanopia (blue-blind)
#E6CBBB
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d7d939;
/* rgb */ color: rgb(215, 217, 57);
/* oklch */ color: oklch(85.7% 0.171 110.3);
Tailwind
colors: {
  custom: {
    50: '#e7e47b',
    500: '#d7d939',
    950: '#000000',
  },
}
SCSS
$custom: #d7d939;
$custom-light: #e7e47b;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d939",
  "rgb": {
    "r": 215,
    "g": 217,
    "b": 57
  },
  "hsl": {
    "h": 60.75,
    "s": 67.797,
    "l": 53.725
  },
  "oklch": {
    "l": 0.85702,
    "c": 0.17095,
    "h": 110.3
  },
  "luminance": 0.64368
}

Semantic roles & 50–950 ramp

primary
#D7D939
secondary
#313086
accent
#3DEB3F
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150A
muted
#85847D

Preview Lab

Preview with #D7D939

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

Preview Lab → · Contrast checker → · Palette generator →

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