#D4B340#D4B340

#D4B340 is a light, vivid yellow. Relative luminance 0.466; OKLCH L 77.5% C 0.135 H 92.7°. Best body text is #000000 at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#D4B340
RGBrgb(212, 179, 64)
HSLhsl(47, 63%, 54%)
HSVhsv(47, 70%, 83%)
CMYKcmyk(0%, 15.6%, 69.8%, 16.9%)
CIE-LABlab(73.94, -0.30, 60.48)
CIE-LCHlch(73.94, 60.48, 90.28°)
OKLaboklab(77.53% -0.0064 0.1352)
OKLCHoklch(77.53% 0.135 92.7)
XYZxyz(44.1992, 46.6099, 11.5181)
Luminance0.4661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B340 #4061D4
analogous
#D46940 #D4B340 #ABD440
triadic
#D4B340 #40D4B3 #B340D4
tetradic
#D4B340 #40D469 #4061D4 #D440AB
square
#D4B340 #40D469 #4061D4 #D440AB
split-complementary
#D4B340 #40ABD4 #6940D4
monochromatic
#7D681C #AF9127 #D4B340 #DFC772 #EADBA4

Accessibility & contrast

On white

2.03
#D4B340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.32
#D4B340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B340
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B340#FFFFFF#000000##000000
##D4B3401.002.0310.3210.32
#FFFFFF2.031.0021.0021.00
#00000010.3221.001.001.00
##00000010.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B030
Deuteranopia (green-blind)
#CEBA46
Tritanopia (blue-blind)
#E5A59C
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #d4b340;
/* rgb */ color: rgb(212, 179, 64);
/* oklch */ color: oklch(77.5% 0.135 92.7);
Tailwind
colors: {
  custom: {
    50: '#e5c97b',
    500: '#d4b340',
    950: '#000000',
  },
}
SCSS
$custom: #d4b340;
$custom-light: #e5c97b;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b340",
  "rgb": {
    "r": 212,
    "g": 179,
    "b": 64
  },
  "hsl": {
    "h": 46.622,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.77533,
    "c": 0.13533,
    "h": 92.7
  },
  "luminance": 0.46607
}

Semantic roles & 50–950 ramp

primary
#D4B340
secondary
#98A6D7
accent
#66E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D4B340

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

Preview Lab → · Contrast checker → · Palette generator →

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