#D4B32F#D4B32F

#D4B32F is a light, vivid yellow. Relative luminance 0.464; OKLCH L 77.4% C 0.145 H 94.1°. Best body text is #000000 at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#D4B32F
RGBrgb(212, 179, 47)
HSLhsl(48, 66%, 51%)
HSVhsv(48, 78%, 83%)
CMYKcmyk(0%, 15.6%, 77.8%, 16.9%)
CIE-LABlab(73.83, -1.05, 66.66)
CIE-LCHlch(73.83, 66.67, 90.90°)
OKLaboklab(77.42% -0.0103 0.145)
OKLCHoklch(77.42% 0.145 94.1)
XYZxyz(43.7870, 46.4451, 9.3472)
Luminance0.4644 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B32F #2F50D4
analogous
#D4602F #D4B32F #A2D42F
triadic
#D4B32F #2FD4B3 #B32FD4
tetradic
#D4B32F #2FD460 #2F50D4 #D42FA2
square
#D4B32F #2FD460 #2F50D4 #D42FA2
split-complementary
#D4B32F #2FA2D4 #602FD4
monochromatic
#715F17 #A48A22 #D4B32F #DEC662 #E9D894

Accessibility & contrast

On white

2.04
#D4B32F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.29
#D4B32F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B32F
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B32F#FFFFFF#000000##000000
##D4B32F1.002.0410.2910.29
#FFFFFF2.041.0021.0021.00
#00000010.2921.001.001.00
##00000010.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B011
Deuteranopia (green-blind)
#CFBA38
Tritanopia (blue-blind)
#E5A49A
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #d4b32f;
/* rgb */ color: rgb(212, 179, 47);
/* oklch */ color: oklch(77.4% 0.145 94.1);
Tailwind
colors: {
  custom: {
    50: '#e6c972',
    500: '#d4b32f',
    950: '#000000',
  },
}
SCSS
$custom: #d4b32f;
$custom-light: #e6c972;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b32f",
  "rgb": {
    "r": 212,
    "g": 179,
    "b": 47
  },
  "hsl": {
    "h": 48,
    "s": 65.737,
    "l": 50.784
  },
  "oklch": {
    "l": 0.77415,
    "c": 0.14541,
    "h": 94.1
  },
  "luminance": 0.46442
}

Semantic roles & 50–950 ramp

primary
#D4B32F
secondary
#8B99D4
accent
#61E93F
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#171309
muted
#85827B

Preview Lab

Preview with #D4B32F

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

Preview Lab → · Contrast checker → · Palette generator →

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