#D9D538#D9D538

#D9D538 is a very light, vivid yellow. Relative luminance 0.626; OKLCH L 85.0% C 0.167 H 108.0°. Best body text is #000000 at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#D9D538
RGBrgb(217, 213, 56)
HSLhsl(59, 68%, 54%)
HSVhsv(59, 74%, 85%)
CMYKcmyk(0%, 1.8%, 74.2%, 14.9%)
CIE-LABlab(83.25, -15.92, 72.55)
CIE-LCHlch(83.25, 74.28, 102.37°)
OKLaboklab(85.01% -0.0516 0.1591)
OKLCHoklch(85.01% 0.167 108)
XYZxyz(53.1254, 62.6275, 13.0305)
Luminance0.6263 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D538 #383CD9
analogous
#D98438 #D9D538 #8CD938
triadic
#D9D538 #38D9D5 #D538D9
tetradic
#D9D538 #38D984 #383CD9 #D9388C
square
#D9D538 #38D984 #383CD9 #D9388C
split-complementary
#D9D538 #388CD9 #8438D9
monochromatic
#7E7C18 #B2AE22 #D9D538 #E3E06B #EDEB9F

Accessibility & contrast

On white

1.55
#D9D538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.53
#D9D538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D538
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D538#FFFFFF#000000##000000
##D9D5381.001.5513.5313.53
#FFFFFF1.551.0021.0021.00
#00000013.5321.001.001.00
##00000013.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CC14
Deuteranopia (green-blind)
#E9D245
Tritanopia (blue-blind)
#E9C7B7
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d9d538;
/* rgb */ color: rgb(217, 213, 56);
/* oklch */ color: oklch(85.0% 0.167 108.0);
Tailwind
colors: {
  custom: {
    50: '#e9e17a',
    500: '#d9d538',
    950: '#000000',
  },
}
SCSS
$custom: #d9d538;
$custom-light: #e9e17a;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d538",
  "rgb": {
    "r": 217,
    "g": 213,
    "b": 56
  },
  "hsl": {
    "h": 58.509,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.85011,
    "c": 0.1673,
    "h": 108
  },
  "luminance": 0.62626
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D9D538

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

Preview Lab → · Contrast checker → · Palette generator →

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