#D4AF3A#D4AF3A

#D4AF3A is a light, vivid yellow. Relative luminance 0.450; OKLCH L 76.7% C 0.137 H 90.8°. Best body text is #000000 at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#D4AF3A
RGBrgb(212, 175, 58)
HSLhsl(46, 64%, 53%)
HSVhsv(46, 73%, 83%)
CMYKcmyk(0%, 17.5%, 72.6%, 16.9%)
CIE-LABlab(72.87, 1.52, 61.79)
CIE-LCHlch(72.87, 61.81, 88.59°)
OKLaboklab(76.67% -0.0018 0.1369)
OKLCHoklch(76.67% 0.137 90.8)
XYZxyz(43.2475, 44.9651, 10.4034)
Luminance0.4496 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4AF3A #3A5FD4
analogous
#D4623A #D4AF3A #ACD43A
triadic
#D4AF3A #3AD4AF #AF3AD4
tetradic
#D4AF3A #3AD462 #3A5FD4 #D43AAC
square
#D4AF3A #3AD462 #3A5FD4 #D43AAC
split-complementary
#D4AF3A #3AACD4 #623AD4
monochromatic
#79621A #AB8B25 #D4AF3A #DFC36C #EAD89E

Accessibility & contrast

On white

2.10
#D4AF3A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.99
#D4AF3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4AF3A
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4AF3A#FFFFFF#000000##000000
##D4AF3A1.002.109.999.99
#FFFFFF2.101.0021.0021.00
#0000009.9921.001.001.00
##0000009.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD28
Deuteranopia (green-blind)
#CCB740
Tritanopia (blue-blind)
#E5A098
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #d4af3a;
/* rgb */ color: rgb(212, 175, 58);
/* oklch */ color: oklch(76.7% 0.137 90.8);
Tailwind
colors: {
  custom: {
    50: '#e5c678',
    500: '#d4af3a',
    950: '#000000',
  },
}
SCSS
$custom: #d4af3a;
$custom-light: #e5c678;
$custom-dark: #000000;
JSON
{
  "hex": "#d4af3a",
  "rgb": {
    "r": 212,
    "g": 175,
    "b": 58
  },
  "hsl": {
    "h": 45.584,
    "s": 64.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.76674,
    "c": 0.13686,
    "h": 90.8
  },
  "luminance": 0.44962
}

Semantic roles & 50–950 ramp

primary
#D4AF3A
secondary
#94A4D6
accent
#69E741
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #D4AF3A

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

Preview Lab → · Contrast checker → · Palette generator →

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