#D4B640#D4B640

#D4B640 is a light, vivid yellow. Relative luminance 0.478; OKLCH L 78.1% C 0.137 H 94.5°. Best body text is #000000 at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#D4B640
RGBrgb(212, 182, 64)
HSLhsl(48, 63%, 54%)
HSVhsv(48, 70%, 83%)
CMYKcmyk(0%, 14.2%, 69.8%, 16.9%)
CIE-LABlab(74.71, -1.87, 61.27)
CIE-LCHlch(74.71, 61.29, 91.75°)
OKLaboklab(78.15% -0.0109 0.1368)
OKLCHoklch(78.15% 0.137 94.5)
XYZxyz(44.8070, 47.8255, 11.7207)
Luminance0.4782 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B640 #405ED4
analogous
#D46C40 #D4B640 #A8D440
triadic
#D4B640 #40D4B6 #B640D4
tetradic
#D4B640 #40D46C #405ED4 #D440A8
square
#D4B640 #40D46C #405ED4 #D440A8
split-complementary
#D4B640 #40A8D4 #6C40D4
monochromatic
#7D6A1C #AF9427 #D4B640 #DFC972 #EADCA4

Accessibility & contrast

On white

1.99
#D4B640 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.56
#D4B640 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B640
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B640#FFFFFF#000000##000000
##D4B6401.001.9910.5610.56
#FFFFFF1.991.0021.0021.00
#00000010.5621.001.001.00
##00000010.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B32F
Deuteranopia (green-blind)
#D0BC46
Tritanopia (blue-blind)
#E5A89E
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #d4b640;
/* rgb */ color: rgb(212, 182, 64);
/* oklch */ color: oklch(78.1% 0.137 94.5);
Tailwind
colors: {
  custom: {
    50: '#e5cb7b',
    500: '#d4b640',
    950: '#000000',
  },
}
SCSS
$custom: #d4b640;
$custom-light: #e5cb7b;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b640",
  "rgb": {
    "r": 212,
    "g": 182,
    "b": 64
  },
  "hsl": {
    "h": 47.838,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.78145,
    "c": 0.13727,
    "h": 94.5
  },
  "luminance": 0.47823
}

Semantic roles & 50–950 ramp

primary
#D4B640
secondary
#98A5D7
accent
#63E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D4B640

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

Preview Lab → · Contrast checker → · Palette generator →

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