#D9B538#D9B538

#D9B538 is a light, vivid yellow. Relative luminance 0.481; OKLCH L 78.4% C 0.142 H 92.2°. Best body text is #000000 at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#D9B538
RGBrgb(217, 181, 56)
HSLhsl(47, 68%, 54%)
HSVhsv(47, 74%, 85%)
CMYKcmyk(0%, 16.6%, 74.2%, 14.9%)
CIE-LABlab(74.88, 0.43, 64.66)
CIE-LCHlch(74.88, 64.67, 89.62°)
OKLaboklab(78.37% -0.0055 0.1424)
OKLCHoklch(78.37% 0.142 92.2)
XYZxyz(45.8555, 48.0877, 10.6072)
Luminance0.4808 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9B538 #385CD9
analogous
#D96438 #D9B538 #ACD938
triadic
#D9B538 #38D9B5 #B538D9
tetradic
#D9B538 #38D964 #385CD9 #D938AC
square
#D9B538 #38D964 #385CD9 #D938AC
split-complementary
#D9B538 #38ACD9 #6438D9
monochromatic
#7E6818 #B29222 #D9B538 #E3C86B #EDDB9F

Accessibility & contrast

On white

1.98
#D9B538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.62
#D9B538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9B538
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9B538#FFFFFF#000000##000000
##D9B5381.001.9810.6210.62
#FFFFFF1.981.0021.0021.00
#00000010.6221.001.001.00
##00000010.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B223
Deuteranopia (green-blind)
#D2BD3F
Tritanopia (blue-blind)
#EBA69C
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #d9b538;
/* rgb */ color: rgb(217, 181, 56);
/* oklch */ color: oklch(78.4% 0.142 92.2);
Tailwind
colors: {
  custom: {
    50: '#e9ca77',
    500: '#d9b538',
    950: '#000000',
  },
}
SCSS
$custom: #d9b538;
$custom-light: #e9ca77;
$custom-dark: #000000;
JSON
{
  "hex": "#d9b538",
  "rgb": {
    "r": 217,
    "g": 181,
    "b": 56
  },
  "hsl": {
    "h": 46.584,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.7837,
    "c": 0.14246,
    "h": 92.2
  },
  "luminance": 0.48085
}

Semantic roles & 50–950 ramp

primary
#D9B538
secondary
#94A3D9
accent
#64EB3D
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#171309
muted
#85827B

Preview Lab

Preview with #D9B538

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

Preview Lab → · Contrast checker → · Palette generator →

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