#D9B740#D9B740

#D9B740 is a light, vivid yellow. Relative luminance 0.490; OKLCH L 78.8% C 0.139 H 92.7°. Best body text is #000000 at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#D9B740
RGBrgb(217, 183, 64)
HSLhsl(47, 67%, 55%)
HSVhsv(47, 71%, 85%)
CMYKcmyk(0%, 15.7%, 70.5%, 14.9%)
CIE-LABlab(75.45, -0.25, 62.16)
CIE-LCHlch(75.45, 62.16, 90.23°)
OKLaboklab(78.83% -0.0065 0.1385)
OKLCHoklch(78.83% 0.139 92.7)
XYZxyz(46.4766, 48.9915, 11.8578)
Luminance0.4899 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9B740 #4062D9
analogous
#D96B40 #D9B740 #AED940
triadic
#D9B740 #40D9B7 #B740D9
tetradic
#D9B740 #40D96B #4062D9 #D940AE
square
#D9B740 #40D96B #4062D9 #D940AE
split-complementary
#D9B740 #40AED9 #6B40D9
monochromatic
#846D1A #B79724 #D9B740 #E3CA73 #EDDDA6

Accessibility & contrast

On white

1.94
#D9B740 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.80
#D9B740 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9B740
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9B740#FFFFFF#000000##000000
##D9B7401.001.9410.8010.80
#FFFFFF1.941.0021.0021.00
#00000010.8021.001.001.00
##00000010.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB42F
Deuteranopia (green-blind)
#D3BE46
Tritanopia (blue-blind)
#EAA89F
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #d9b740;
/* rgb */ color: rgb(217, 183, 64);
/* oklch */ color: oklch(78.8% 0.139 92.7);
Tailwind
colors: {
  custom: {
    50: '#e9cc7c',
    500: '#d9b740',
    950: '#000000',
  },
}
SCSS
$custom: #d9b740;
$custom-light: #e9cc7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d9b740",
  "rgb": {
    "r": 217,
    "g": 183,
    "b": 64
  },
  "hsl": {
    "h": 46.667,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.78833,
    "c": 0.13869,
    "h": 92.7
  },
  "luminance": 0.48989
}

Semantic roles & 50–950 ramp

primary
#D9B740
secondary
#9AA9DA
accent
#64EA3E
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#17130A
muted
#85827C

Preview Lab

Preview with #D9B740

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

Preview Lab → · Contrast checker → · Palette generator →

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