#D4AF40#D4AF40

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

Color values

HEX#D4AF40
RGBrgb(212, 175, 64)
HSLhsl(45, 63%, 54%)
HSVhsv(45, 70%, 83%)
CMYKcmyk(0%, 17.5%, 69.8%, 16.9%)
CIE-LABlab(72.91, 1.81, 59.43)
CIE-LCHlch(72.91, 59.46, 88.25°)
OKLaboklab(76.72% -0.0003 0.133)
OKLCHoklch(76.72% 0.133 90.1)
XYZxyz(43.4091, 45.0298, 11.2547)
Luminance0.4503 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4AF40 #4065D4
analogous
#D46540 #D4AF40 #AFD440
triadic
#D4AF40 #40D4AF #AF40D4
tetradic
#D4AF40 #40D465 #4065D4 #D440AF
square
#D4AF40 #40D465 #4065D4 #D440AF
split-complementary
#D4AF40 #40AFD4 #6540D4
monochromatic
#7D651C #AF8D27 #D4AF40 #DFC472 #EAD9A4

Accessibility & contrast

On white

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

On black

10.01
#D4AF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4AF40
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4AF40#FFFFFF#000000##000000
##D4AF401.002.1010.0110.01
#FFFFFF2.101.0021.0021.00
#00000010.0121.001.001.00
##00000010.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD31
Deuteranopia (green-blind)
#CBB745
Tritanopia (blue-blind)
#E5A198
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #d4af40;
/* rgb */ color: rgb(212, 175, 64);
/* oklch */ color: oklch(76.7% 0.133 90.1);
Tailwind
colors: {
  custom: {
    50: '#e5c67b',
    500: '#d4af40',
    950: '#000000',
  },
}
SCSS
$custom: #d4af40;
$custom-light: #e5c67b;
$custom-dark: #000000;
JSON
{
  "hex": "#d4af40",
  "rgb": {
    "r": 212,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 45,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.76722,
    "c": 0.13296,
    "h": 90.1
  },
  "luminance": 0.45027
}

Semantic roles & 50–950 ramp

primary
#D4AF40
secondary
#98A8D7
accent
#6BE642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D4AF40

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

Preview Lab → · Contrast checker → · Palette generator →

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