#D1AF40#D1AF40

#D1AF40 is a light, vivid yellow. Relative luminance 0.446; OKLCH L 76.4% C 0.132 H 91.7°. Best body text is #000000 at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#D1AF40
RGBrgb(209, 175, 64)
HSLhsl(46, 61%, 54%)
HSVhsv(46, 69%, 82%)
CMYKcmyk(0%, 16.3%, 69.4%, 18%)
CIE-LABlab(72.62, 0.52, 59.04)
CIE-LCHlch(72.62, 59.05, 89.50°)
OKLaboklab(76.42% -0.0038 0.1322)
OKLCHoklch(76.42% 0.132 91.7)
XYZxyz(42.5521, 44.5879, 11.2145)
Luminance0.4459 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1AF40 #4062D1
analogous
#D16640 #D1AF40 #AAD140
triadic
#D1AF40 #40D1AF #AF40D1
tetradic
#D1AF40 #40D166 #4062D1 #D140AA
square
#D1AF40 #40D166 #4062D1 #D140AA
split-complementary
#D1AF40 #40AAD1 #6640D1
monochromatic
#79641D #AB8C29 #D1AF40 #DDC471 #E9D8A3

Accessibility & contrast

On white

2.12
#D1AF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.92
#D1AF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1AF40
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1AF40#FFFFFF#000000##000000
##D1AF401.002.129.929.92
#FFFFFF2.121.0021.0021.00
#0000009.9221.001.001.00
##0000009.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC31
Deuteranopia (green-blind)
#CAB646
Tritanopia (blue-blind)
#E2A198
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #d1af40;
/* rgb */ color: rgb(209, 175, 64);
/* oklch */ color: oklch(76.4% 0.132 91.7);
Tailwind
colors: {
  custom: {
    50: '#e3c67b',
    500: '#d1af40',
    950: '#000000',
  },
}
SCSS
$custom: #d1af40;
$custom-light: #e3c67b;
$custom-dark: #000000;
JSON
{
  "hex": "#d1af40",
  "rgb": {
    "r": 209,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 45.931,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.76424,
    "c": 0.1323,
    "h": 91.7
  },
  "luminance": 0.44585
}

Semantic roles & 50–950 ramp

primary
#D1AF40
secondary
#97A6D5
accent
#69E444
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D1AF40

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

Preview Lab → · Contrast checker → · Palette generator →

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