#D1AF42#D1AF42

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

Color values

HEX#D1AF42
RGBrgb(209, 175, 66)
HSLhsl(46, 61%, 54%)
HSVhsv(46, 68%, 82%)
CMYKcmyk(0%, 16.3%, 68.4%, 18%)
CIE-LABlab(72.64, 0.63, 58.23)
CIE-LCHlch(72.64, 58.23, 89.38°)
OKLaboklab(76.44% -0.0033 0.1309)
OKLCHoklch(76.44% 0.131 91.4)
XYZxyz(42.6101, 44.6111, 11.5197)
Luminance0.4461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1AF42 #4264D1
analogous
#D16842 #D1AF42 #ACD142
triadic
#D1AF42 #42D1AF #AF42D1
tetradic
#D1AF42 #42D168 #4264D1 #D142AC
square
#D1AF42 #42D168 #4264D1 #D142AC
split-complementary
#D1AF42 #42ACD1 #6842D1
monochromatic
#7B651E #AC8D2A #D1AF42 #DDC473 #E9D9A4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D1AF42#FFFFFF#000000##000000
##D1AF421.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)
#C2AD34
Deuteranopia (green-blind)
#CAB647
Tritanopia (blue-blind)
#E2A198
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #d1af42;
/* rgb */ color: rgb(209, 175, 66);
/* oklch */ color: oklch(76.4% 0.131 91.4);
Tailwind
colors: {
  custom: {
    50: '#e3c67c',
    500: '#d1af42',
    950: '#000000',
  },
}
SCSS
$custom: #d1af42;
$custom-light: #e3c67c;
$custom-dark: #000000;
JSON
{
  "hex": "#d1af42",
  "rgb": {
    "r": 209,
    "g": 175,
    "b": 66
  },
  "hsl": {
    "h": 45.734,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.76441,
    "c": 0.1309,
    "h": 91.4
  },
  "luminance": 0.44609
}

Semantic roles & 50–950 ramp

primary
#D1AF42
secondary
#99A7D6
accent
#6AE444
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D1AF42

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

Preview Lab → · Contrast checker → · Palette generator →

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