#D4B42F#D4B42F

#D4B42F is a light, vivid yellow. Relative luminance 0.468; OKLCH L 77.6% C 0.146 H 94.6°. Best body text is #000000 at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#D4B42F
RGBrgb(212, 180, 47)
HSLhsl(48, 66%, 51%)
HSVhsv(48, 78%, 83%)
CMYKcmyk(0%, 15.1%, 77.8%, 16.9%)
CIE-LABlab(74.09, -1.57, 66.89)
CIE-LCHlch(74.09, 66.91, 91.35°)
OKLaboklab(77.62% -0.0118 0.1456)
OKLCHoklch(77.62% 0.146 94.6)
XYZxyz(43.9882, 46.8473, 9.4143)
Luminance0.4684 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B42F #2F4FD4
analogous
#D4622F #D4B42F #A1D42F
triadic
#D4B42F #2FD4B4 #B42FD4
tetradic
#D4B42F #2FD462 #2F4FD4 #D42FA1
square
#D4B42F #2FD462 #2F4FD4 #D42FA1
split-complementary
#D4B42F #2FA1D4 #622FD4
monochromatic
#716017 #A48B22 #D4B42F #DEC662 #E9D994

Accessibility & contrast

On white

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

On black

10.37
#D4B42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B42F
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B42F#FFFFFF#000000##000000
##D4B42F1.002.0310.3710.37
#FFFFFF2.031.0021.0021.00
#00000010.3721.001.001.00
##00000010.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B110
Deuteranopia (green-blind)
#D0BA38
Tritanopia (blue-blind)
#E5A59B
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #d4b42f;
/* rgb */ color: rgb(212, 180, 47);
/* oklch */ color: oklch(77.6% 0.146 94.6);
Tailwind
colors: {
  custom: {
    50: '#e6ca72',
    500: '#d4b42f',
    950: '#000000',
  },
}
SCSS
$custom: #d4b42f;
$custom-light: #e6ca72;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b42f",
  "rgb": {
    "r": 212,
    "g": 180,
    "b": 47
  },
  "hsl": {
    "h": 48.364,
    "s": 65.737,
    "l": 50.784
  },
  "oklch": {
    "l": 0.7762,
    "c": 0.14603,
    "h": 94.6
  },
  "luminance": 0.46845
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D4B42F

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

Preview Lab → · Contrast checker → · Palette generator →

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