#D9B438#D9B438

#D9B438 is a light, vivid yellow. Relative luminance 0.477; OKLCH L 78.2% C 0.142 H 91.6°. Best body text is #000000 at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#D9B438
RGBrgb(217, 180, 56)
HSLhsl(46, 68%, 54%)
HSVhsv(46, 74%, 85%)
CMYKcmyk(0%, 17.1%, 74.2%, 14.9%)
CIE-LABlab(74.62, 0.95, 64.42)
CIE-LCHlch(74.62, 64.43, 89.15°)
OKLaboklab(78.17% -0.004 0.1418)
OKLCHoklch(78.17% 0.142 91.6)
XYZxyz(45.6529, 47.6825, 10.5397)
Luminance0.4768 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9B438 #385DD9
analogous
#D96338 #D9B438 #ADD938
triadic
#D9B438 #38D9B4 #B438D9
tetradic
#D9B438 #38D963 #385DD9 #D938AD
square
#D9B438 #38D963 #385DD9 #D938AD
split-complementary
#D9B438 #38ADD9 #6338D9
monochromatic
#7E6718 #B29122 #D9B438 #E3C76B #EDDB9F

Accessibility & contrast

On white

1.99
#D9B438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.54
#D9B438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9B438
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9B438#FFFFFF#000000##000000
##D9B4381.001.9910.5410.54
#FFFFFF1.991.0021.0021.00
#00000010.5421.001.001.00
##00000010.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B123
Deuteranopia (green-blind)
#D1BC3F
Tritanopia (blue-blind)
#EBA59C
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #d9b438;
/* rgb */ color: rgb(217, 180, 56);
/* oklch */ color: oklch(78.2% 0.142 91.6);
Tailwind
colors: {
  custom: {
    50: '#e9ca77',
    500: '#d9b438',
    950: '#000000',
  },
}
SCSS
$custom: #d9b438;
$custom-light: #e9ca77;
$custom-dark: #000000;
JSON
{
  "hex": "#d9b438",
  "rgb": {
    "r": 217,
    "g": 180,
    "b": 56
  },
  "hsl": {
    "h": 46.211,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.78168,
    "c": 0.1419,
    "h": 91.6
  },
  "luminance": 0.4768
}

Semantic roles & 50–950 ramp

primary
#D9B438
secondary
#94A4D9
accent
#65EB3D
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#171309
muted
#85827B

Preview Lab

Preview with #D9B438

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

Preview Lab → · Contrast checker → · Palette generator →

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