#D9B545#D9B545

#D9B545 is a light, vivid yellow. Relative luminance 0.482; OKLCH L 78.5% C 0.134 H 90.9°. Best body text is #000000 at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#D9B545
RGBrgb(217, 181, 69)
HSLhsl(45, 66%, 56%)
HSVhsv(45, 68%, 85%)
CMYKcmyk(0%, 16.6%, 68.2%, 14.9%)
CIE-LABlab(74.97, 1.06, 59.63)
CIE-LCHlch(74.97, 59.64, 88.98°)
OKLaboklab(78.47% -0.0022 0.1341)
OKLCHoklch(78.47% 0.134 90.9)
XYZxyz(46.2158, 48.2318, 12.5045)
Luminance0.4823 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9B545 #4569D9
analogous
#D96B45 #D9B545 #B3D945
triadic
#D9B545 #45D9B5 #B545D9
tetradic
#D9B545 #45D96B #4569D9 #D945B3
square
#D9B545 #45D96B #4569D9 #D945B3
split-complementary
#D9B545 #45B3D9 #6B45D9
monochromatic
#886E1C #BB9726 #D9B545 #E3C978 #EEDDAB

Accessibility & contrast

On white

1.97
#D9B545 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.65
#D9B545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9B545
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9B545#FFFFFF#000000##000000
##D9B5451.001.9710.6510.65
#FFFFFF1.971.0021.0021.00
#00000010.6521.001.001.00
##00000010.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B337
Deuteranopia (green-blind)
#D1BD4A
Tritanopia (blue-blind)
#EAA79E
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #d9b545;
/* rgb */ color: rgb(217, 181, 69);
/* oklch */ color: oklch(78.5% 0.134 90.9);
Tailwind
colors: {
  custom: {
    50: '#e9ca7e',
    500: '#d9b545',
    950: '#000000',
  },
}
SCSS
$custom: #d9b545;
$custom-light: #e9ca7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d9b545",
  "rgb": {
    "r": 217,
    "g": 181,
    "b": 69
  },
  "hsl": {
    "h": 45.405,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.7847,
    "c": 0.13409,
    "h": 90.9
  },
  "luminance": 0.48229
}

Semantic roles & 50–950 ramp

primary
#D9B545
secondary
#9EADDB
accent
#68E93F
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#17130A
muted
#85827C

Preview Lab

Preview with #D9B545

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

Preview Lab → · Contrast checker → · Palette generator →

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