#D9B340#D9B340

#D9B340 is a light, vivid yellow. Relative luminance 0.474; OKLCH L 78.0% C 0.136 H 90.2°. Best body text is #000000 at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#D9B340
RGBrgb(217, 179, 64)
HSLhsl(45, 67%, 55%)
HSVhsv(45, 71%, 85%)
CMYKcmyk(0%, 17.5%, 70.5%, 14.9%)
CIE-LABlab(74.42, 1.85, 61.13)
CIE-LCHlch(74.42, 61.15, 88.27°)
OKLaboklab(78.03% -0.0005 0.1364)
OKLCHoklch(78.03% 0.136 90.2)
XYZxyz(45.6633, 47.3649, 11.5867)
Luminance0.4736 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9B340 #4066D9
analogous
#D96640 #D9B340 #B2D940
triadic
#D9B340 #40D9B3 #B340D9
tetradic
#D9B340 #40D966 #4066D9 #D940B2
square
#D9B340 #40D966 #4066D9 #D940B2
split-complementary
#D9B340 #40B2D9 #6640D9
monochromatic
#846A1A #B79324 #D9B340 #E3C773 #EDDCA6

Accessibility & contrast

On white

2.01
#D9B340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.47
#D9B340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9B340
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9B340#FFFFFF#000000##000000
##D9B3401.002.0110.4710.47
#FFFFFF2.011.0021.0021.00
#00000010.4721.001.001.00
##00000010.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B130
Deuteranopia (green-blind)
#D0BC46
Tritanopia (blue-blind)
#EBA49C
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #d9b340;
/* rgb */ color: rgb(217, 179, 64);
/* oklch */ color: oklch(78.0% 0.136 90.2);
Tailwind
colors: {
  custom: {
    50: '#e9c97b',
    500: '#d9b340',
    950: '#000000',
  },
}
SCSS
$custom: #d9b340;
$custom-light: #e9c97b;
$custom-dark: #000000;
JSON
{
  "hex": "#d9b340",
  "rgb": {
    "r": 217,
    "g": 179,
    "b": 64
  },
  "hsl": {
    "h": 45.098,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.78026,
    "c": 0.13636,
    "h": 90.2
  },
  "luminance": 0.47362
}

Semantic roles & 50–950 ramp

primary
#D9B340
secondary
#9AAADA
accent
#69EA3E
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#17130A
muted
#85827C

Preview Lab

Preview with #D9B340

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

Preview Lab → · Contrast checker → · Palette generator →

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