#D4B040#D4B040

#D4B040 is a light, vivid yellow. Relative luminance 0.454; OKLCH L 76.9% C 0.134 H 90.8°. Best body text is #000000 at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#D4B040
RGBrgb(212, 176, 64)
HSLhsl(45, 63%, 54%)
HSVhsv(45, 70%, 83%)
CMYKcmyk(0%, 17%, 69.8%, 16.9%)
CIE-LABlab(73.17, 1.28, 59.70)
CIE-LCHlch(73.17, 59.71, 88.77°)
OKLaboklab(76.92% -0.0018 0.1335)
OKLCHoklch(76.92% 0.134 90.8)
XYZxyz(43.6045, 45.4205, 11.3198)
Luminance0.4542 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B040 #4064D4
analogous
#D46640 #D4B040 #AED440
triadic
#D4B040 #40D4B0 #B040D4
tetradic
#D4B040 #40D466 #4064D4 #D440AE
square
#D4B040 #40D466 #4064D4 #D440AE
split-complementary
#D4B040 #40AED4 #6640D4
monochromatic
#7D661C #AF8E27 #D4B040 #DFC572 #EAD9A4

Accessibility & contrast

On white

2.08
#D4B040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.08
#D4B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B040
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B040#FFFFFF#000000##000000
##D4B0401.002.0810.0810.08
#FFFFFF2.081.0021.0021.00
#00000010.0821.001.001.00
##00000010.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE31
Deuteranopia (green-blind)
#CCB846
Tritanopia (blue-blind)
#E5A299
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #d4b040;
/* rgb */ color: rgb(212, 176, 64);
/* oklch */ color: oklch(76.9% 0.134 90.8);
Tailwind
colors: {
  custom: {
    50: '#e5c77b',
    500: '#d4b040',
    950: '#000000',
  },
}
SCSS
$custom: #d4b040;
$custom-light: #e5c77b;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b040",
  "rgb": {
    "r": 212,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 45.405,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.76924,
    "c": 0.13352,
    "h": 90.8
  },
  "luminance": 0.45418
}

Semantic roles & 50–950 ramp

primary
#D4B040
secondary
#98A8D7
accent
#6AE642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D4B040

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

Preview Lab → · Contrast checker → · Palette generator →

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