#D9D338#D9D338

#D9D338 is a very light, vivid yellow. Relative luminance 0.616; OKLCH L 84.6% C 0.165 H 107.2°. Best body text is #000000 at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#D9D338
RGBrgb(217, 211, 56)
HSLhsl(58, 68%, 54%)
HSVhsv(58, 74%, 85%)
CMYKcmyk(0%, 2.8%, 74.2%, 14.9%)
CIE-LABlab(82.72, -14.92, 72.06)
CIE-LCHlch(82.72, 73.59, 101.70°)
OKLaboklab(84.59% -0.0489 0.1581)
OKLCHoklch(84.59% 0.165 107.2)
XYZxyz(52.6255, 61.6276, 12.8639)
Luminance0.6163 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D338 #383ED9
analogous
#D98238 #D9D338 #8ED938
triadic
#D9D338 #38D9D3 #D338D9
tetradic
#D9D338 #38D982 #383ED9 #D9388E
square
#D9D338 #38D982 #383ED9 #D9388E
split-complementary
#D9D338 #388ED9 #8238D9
monochromatic
#7E7B18 #B2AC22 #D9D338 #E3DE6B #EDEA9F

Accessibility & contrast

On white

1.58
#D9D338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.33
#D9D338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D338
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D338#FFFFFF#000000##000000
##D9D3381.001.5813.3313.33
#FFFFFF1.581.0021.0021.00
#00000013.3321.001.001.00
##00000013.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CB15
Deuteranopia (green-blind)
#E8D144
Tritanopia (blue-blind)
#E9C5B6
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d9d338;
/* rgb */ color: rgb(217, 211, 56);
/* oklch */ color: oklch(84.6% 0.165 107.2);
Tailwind
colors: {
  custom: {
    50: '#e9e07a',
    500: '#d9d338',
    950: '#000000',
  },
}
SCSS
$custom: #d9d338;
$custom-light: #e9e07a;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d338",
  "rgb": {
    "r": 217,
    "g": 211,
    "b": 56
  },
  "hsl": {
    "h": 57.764,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.84587,
    "c": 0.16546,
    "h": 107.2
  },
  "luminance": 0.61626
}

Semantic roles & 50–950 ramp

primary
#D9D338
secondary
#303386
accent
#43EB3D
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150A
muted
#85847D

Preview Lab

Preview with #D9D338

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

Preview Lab → · Contrast checker → · Palette generator →

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