#D4B940#D4B940

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

Color values

HEX#D4B940
RGBrgb(212, 185, 64)
HSLhsl(49, 63%, 54%)
HSVhsv(49, 70%, 83%)
CMYKcmyk(0%, 12.7%, 69.8%, 16.9%)
CIE-LABlab(75.49, -3.44, 62.05)
CIE-LCHlch(75.49, 62.15, 93.17°)
OKLaboklab(78.76% -0.0153 0.1385)
OKLCHoklch(78.76% 0.139 96.3)
XYZxyz(45.4280, 49.0675, 11.9277)
Luminance0.4906 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B940 #405BD4
analogous
#D46F40 #D4B940 #A5D440
triadic
#D4B940 #40D4B9 #B940D4
tetradic
#D4B940 #40D46F #405BD4 #D440A5
square
#D4B940 #40D46F #405BD4 #D440A5
split-complementary
#D4B940 #40A5D4 #6F40D4
monochromatic
#7D6C1C #AF9727 #D4B940 #DFCB72 #EADEA4

Accessibility & contrast

On white

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

On black

10.81
#D4B940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B940
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B940#FFFFFF#000000##000000
##D4B9401.001.9410.8110.81
#FFFFFF1.941.0021.0021.00
#00000010.8121.001.001.00
##00000010.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB52F
Deuteranopia (green-blind)
#D2BE47
Tritanopia (blue-blind)
#E5ABA1
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #d4b940;
/* rgb */ color: rgb(212, 185, 64);
/* oklch */ color: oklch(78.8% 0.139 96.3);
Tailwind
colors: {
  custom: {
    50: '#e5cd7c',
    500: '#d4b940',
    950: '#000000',
  },
}
SCSS
$custom: #d4b940;
$custom-light: #e5cd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b940",
  "rgb": {
    "r": 212,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 49.054,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.78761,
    "c": 0.13935,
    "h": 96.3
  },
  "luminance": 0.49065
}

Semantic roles & 50–950 ramp

primary
#D4B940
secondary
#98A4D7
accent
#60E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D4B940

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

Preview Lab → · Contrast checker → · Palette generator →

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