#D9D438#D9D438

#D9D438 is a very light, vivid yellow. Relative luminance 0.621; OKLCH L 84.8% C 0.166 H 107.6°. Best body text is #000000 at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#D9D438
RGBrgb(217, 212, 56)
HSLhsl(58, 68%, 54%)
HSVhsv(58, 74%, 85%)
CMYKcmyk(0%, 2.3%, 74.2%, 14.9%)
CIE-LABlab(82.98, -15.42, 72.31)
CIE-LCHlch(82.98, 73.93, 102.04°)
OKLaboklab(84.8% -0.0503 0.1586)
OKLCHoklch(84.8% 0.166 107.6)
XYZxyz(52.8747, 62.1260, 12.9469)
Luminance0.6212 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D438 #383DD9
analogous
#D98338 #D9D438 #8DD938
triadic
#D9D438 #38D9D4 #D438D9
tetradic
#D9D438 #38D983 #383DD9 #D9388D
square
#D9D438 #38D983 #383DD9 #D9388D
split-complementary
#D9D438 #388DD9 #8338D9
monochromatic
#7E7B18 #B2AD22 #D9D438 #E3DF6B #EDEA9F

Accessibility & contrast

On white

1.56
#D9D438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.42
#D9D438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D438
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D438#FFFFFF#000000##000000
##D9D4381.001.5613.4213.42
#FFFFFF1.561.0021.0021.00
#00000013.4221.001.001.00
##00000013.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CC14
Deuteranopia (green-blind)
#E9D144
Tritanopia (blue-blind)
#E9C6B6
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d9d438;
/* rgb */ color: rgb(217, 212, 56);
/* oklch */ color: oklch(84.8% 0.166 107.6);
Tailwind
colors: {
  custom: {
    50: '#e9e07a',
    500: '#d9d438',
    950: '#000000',
  },
}
SCSS
$custom: #d9d438;
$custom-light: #e9e07a;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d438",
  "rgb": {
    "r": 217,
    "g": 212,
    "b": 56
  },
  "hsl": {
    "h": 58.137,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.84799,
    "c": 0.16637,
    "h": 107.6
  },
  "luminance": 0.62124
}

Semantic roles & 50–950 ramp

primary
#D9D438
secondary
#303286
accent
#42EB3D
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150A
muted
#85847D

Preview Lab

Preview with #D9D438

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

Preview Lab → · Contrast checker → · Palette generator →

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