#D9D938#D9D938

#D9D938 is a very light, vivid yellow. Relative luminance 0.647; OKLCH L 85.9% C 0.171 H 109.5°. Best body text is #000000 at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#D9D938
RGBrgb(217, 217, 56)
HSLhsl(60, 68%, 54%)
HSVhsv(60, 74%, 85%)
CMYKcmyk(0%, 0%, 74.2%, 14.9%)
CIE-LABlab(84.31, -17.89, 73.54)
CIE-LCHlch(84.31, 75.69, 103.67°)
OKLaboklab(85.86% -0.0571 0.1612)
OKLCHoklch(85.86% 0.171 109.5)
XYZxyz(54.1439, 64.6646, 13.3700)
Luminance0.6466 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D938 #3838D9
analogous
#D98838 #D9D938 #88D938
triadic
#D9D938 #38D9D9 #D938D9
tetradic
#D9D938 #38D988 #3838D9 #D93888
square
#D9D938 #38D988 #3838D9 #D93888
split-complementary
#D9D938 #3888D9 #8838D9
monochromatic
#7E7E18 #B2B222 #D9D938 #E3E36B #EDED9F

Accessibility & contrast

On white

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

On black

13.93
#D9D938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D938
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D938#FFFFFF#000000##000000
##D9D9381.001.5113.9313.93
#FFFFFF1.511.0021.0021.00
#00000013.9321.001.001.00
##00000013.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD011
Deuteranopia (green-blind)
#EDD545
Tritanopia (blue-blind)
#E8CBBB
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d9d938;
/* rgb */ color: rgb(217, 217, 56);
/* oklch */ color: oklch(85.9% 0.171 109.5);
Tailwind
colors: {
  custom: {
    50: '#e9e47b',
    500: '#d9d938',
    950: '#000000',
  },
}
SCSS
$custom: #d9d938;
$custom-light: #e9e47b;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d938",
  "rgb": {
    "r": 217,
    "g": 217,
    "b": 56
  },
  "hsl": {
    "h": 60,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.85861,
    "c": 0.17106,
    "h": 109.5
  },
  "luminance": 0.64663
}

Semantic roles & 50–950 ramp

primary
#D9D938
secondary
#303086
accent
#3DEB3D
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150A
muted
#85847D

Preview Lab

Preview with #D9D938

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

Preview Lab → · Contrast checker → · Palette generator →

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