#D9B940#D9B940

#D9B940 is a light, vivid yellow. Relative luminance 0.498; OKLCH L 79.2% C 0.140 H 93.9°. Best body text is #000000 at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#D9B940
RGBrgb(217, 185, 64)
HSLhsl(47, 67%, 55%)
HSVhsv(47, 71%, 85%)
CMYKcmyk(0%, 14.7%, 70.5%, 14.9%)
CIE-LABlab(75.96, -1.29, 62.67)
CIE-LCHlch(75.96, 62.69, 91.18°)
OKLaboklab(79.24% -0.0095 0.1396)
OKLCHoklch(79.24% 0.14 93.9)
XYZxyz(46.8921, 49.8224, 11.9963)
Luminance0.4982 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9B940 #4060D9
analogous
#D96D40 #D9B940 #ACD940
triadic
#D9B940 #40D9B9 #B940D9
tetradic
#D9B940 #40D96D #4060D9 #D940AC
square
#D9B940 #40D96D #4060D9 #D940AC
split-complementary
#D9B940 #40ACD9 #6D40D9
monochromatic
#846E1A #B79924 #D9B940 #E3CC73 #EDDEA6

Accessibility & contrast

On white

1.92
#D9B940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.96
#D9B940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9B940
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9B940#FFFFFF#000000##000000
##D9B9401.001.9210.9610.96
#FFFFFF1.921.0021.0021.00
#00000010.9621.001.001.00
##00000010.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB62F
Deuteranopia (green-blind)
#D4BF47
Tritanopia (blue-blind)
#EAABA1
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #d9b940;
/* rgb */ color: rgb(217, 185, 64);
/* oklch */ color: oklch(79.2% 0.140 93.9);
Tailwind
colors: {
  custom: {
    50: '#e9cd7c',
    500: '#d9b940',
    950: '#000000',
  },
}
SCSS
$custom: #d9b940;
$custom-light: #e9cd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d9b940",
  "rgb": {
    "r": 217,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 47.451,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.7924,
    "c": 0.13995,
    "h": 93.9
  },
  "luminance": 0.4982
}

Semantic roles & 50–950 ramp

primary
#D9B940
secondary
#9AA8DA
accent
#62EA3E
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#17130A
muted
#85827C

Preview Lab

Preview with #D9B940

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

Preview Lab → · Contrast checker → · Palette generator →

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