#D4AF31#D4AF31

#D4AF31 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 76.6% C 0.142 H 91.6°. Best body text is #000000 at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#D4AF31
RGBrgb(212, 175, 49)
HSLhsl(46, 65%, 51%)
HSVhsv(46, 77%, 83%)
CMYKcmyk(0%, 17.5%, 76.9%, 16.9%)
CIE-LABlab(72.81, 1.13, 65.04)
CIE-LCHlch(72.81, 65.05, 89.00°)
OKLaboklab(76.61% -0.0039 0.142)
OKLCHoklch(76.61% 0.142 91.6)
XYZxyz(43.0382, 44.8814, 9.3013)
Luminance0.4488 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4AF31 #3156D4
analogous
#D45D31 #D4AF31 #A8D431
triadic
#D4AF31 #31D4AF #AF31D4
tetradic
#D4AF31 #31D45D #3156D4 #D431A8
square
#D4AF31 #31D45D #3156D4 #D431A8
split-complementary
#D4AF31 #31A8D4 #5D31D4
monochromatic
#735E18 #A58823 #D4AF31 #DFC364 #E9D696

Accessibility & contrast

On white

2.11
#D4AF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.98
#D4AF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4AF31
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4AF31#FFFFFF#000000##000000
##D4AF311.002.119.989.98
#FFFFFF2.111.0021.0021.00
#0000009.9821.001.001.00
##0000009.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD18
Deuteranopia (green-blind)
#CCB739
Tritanopia (blue-blind)
#E6A097
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #d4af31;
/* rgb */ color: rgb(212, 175, 49);
/* oklch */ color: oklch(76.6% 0.142 91.6);
Tailwind
colors: {
  custom: {
    50: '#e6c673',
    500: '#d4af31',
    950: '#000000',
  },
}
SCSS
$custom: #d4af31;
$custom-light: #e6c673;
$custom-dark: #000000;
JSON
{
  "hex": "#d4af31",
  "rgb": {
    "r": 212,
    "g": 175,
    "b": 49
  },
  "hsl": {
    "h": 46.38,
    "s": 65.462,
    "l": 51.176
  },
  "oklch": {
    "l": 0.76613,
    "c": 0.14204,
    "h": 91.6
  },
  "luminance": 0.44879
}

Semantic roles & 50–950 ramp

primary
#D4AF31
secondary
#8C9DD4
accent
#66E83F
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#171209
muted
#85817B

Preview Lab

Preview with #D4AF31

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

Preview Lab → · Contrast checker → · Palette generator →

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