#D4B840#D4B840

#D4B840 is a light, vivid yellow. Relative luminance 0.486; OKLCH L 78.6% C 0.139 H 95.7°. Best body text is #000000 at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#D4B840
RGBrgb(212, 184, 64)
HSLhsl(49, 63%, 54%)
HSVhsv(49, 70%, 83%)
CMYKcmyk(0%, 13.2%, 69.8%, 16.9%)
CIE-LABlab(75.23, -2.92, 61.79)
CIE-LCHlch(75.23, 61.86, 92.70°)
OKLaboklab(78.55% -0.0139 0.1379)
OKLCHoklch(78.55% 0.139 95.7)
XYZxyz(45.2195, 48.6506, 11.8582)
Luminance0.4865 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B840 #405CD4
analogous
#D46E40 #D4B840 #A6D440
triadic
#D4B840 #40D4B8 #B840D4
tetradic
#D4B840 #40D46E #405CD4 #D440A6
square
#D4B840 #40D46E #405CD4 #D440A6
split-complementary
#D4B840 #40A6D4 #6E40D4
monochromatic
#7D6B1C #AF9627 #D4B840 #DFCB72 #EADDA4

Accessibility & contrast

On white

1.96
#D4B840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.73
#D4B840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B840
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B840#FFFFFF#000000##000000
##D4B8401.001.9610.7310.73
#FFFFFF1.961.0021.0021.00
#00000010.7321.001.001.00
##00000010.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB42F
Deuteranopia (green-blind)
#D2BD47
Tritanopia (blue-blind)
#E5AAA0
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #d4b840;
/* rgb */ color: rgb(212, 184, 64);
/* oklch */ color: oklch(78.6% 0.139 95.7);
Tailwind
colors: {
  custom: {
    50: '#e5cc7c',
    500: '#d4b840',
    950: '#000000',
  },
}
SCSS
$custom: #d4b840;
$custom-light: #e5cc7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b840",
  "rgb": {
    "r": 212,
    "g": 184,
    "b": 64
  },
  "hsl": {
    "h": 48.649,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.78555,
    "c": 0.13863,
    "h": 95.7
  },
  "luminance": 0.48648
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D4B840

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

Preview Lab → · Contrast checker → · Palette generator →

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