#D1AF37#D1AF37

#D1AF37 is a light, vivid yellow. Relative luminance 0.445; OKLCH L 76.4% C 0.138 H 92.5°. Best body text is #000000 at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#D1AF37
RGBrgb(209, 175, 55)
HSLhsl(47, 63%, 52%)
HSVhsv(47, 74%, 82%)
CMYKcmyk(0%, 16.3%, 73.7%, 18%)
CIE-LABlab(72.56, 0.08, 62.53)
CIE-LCHlch(72.56, 62.53, 89.93°)
OKLaboklab(76.35% -0.0061 0.138)
OKLCHoklch(76.35% 0.138 92.5)
XYZxyz(42.3164, 44.4936, 9.9729)
Luminance0.4449 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1AF37 #3759D1
analogous
#D16237 #D1AF37 #A6D137
triadic
#D1AF37 #37D1AF #AF37D1
tetradic
#D1AF37 #37D162 #3759D1 #D137A6
square
#D1AF37 #37D162 #3759D1 #D137A6
split-complementary
#D1AF37 #37A6D1 #6237D1
monochromatic
#73601A #A58926 #D1AF37 #DCC369 #E8D79B

Accessibility & contrast

On white

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

On black

9.90
#D1AF37 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1AF37
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1AF37#FFFFFF#000000##000000
##D1AF371.002.129.909.90
#FFFFFF2.121.0021.0021.00
#0000009.9021.001.001.00
##0000009.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC23
Deuteranopia (green-blind)
#CBB63E
Tritanopia (blue-blind)
#E2A197
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #d1af37;
/* rgb */ color: rgb(209, 175, 55);
/* oklch */ color: oklch(76.4% 0.138 92.5);
Tailwind
colors: {
  custom: {
    50: '#e3c676',
    500: '#d1af37',
    950: '#000000',
  },
}
SCSS
$custom: #d1af37;
$custom-light: #e3c676;
$custom-dark: #000000;
JSON
{
  "hex": "#d1af37",
  "rgb": {
    "r": 209,
    "g": 175,
    "b": 55
  },
  "hsl": {
    "h": 46.753,
    "s": 62.602,
    "l": 51.765
  },
  "oklch": {
    "l": 0.76355,
    "c": 0.13811,
    "h": 92.5
  },
  "luminance": 0.44491
}

Semantic roles & 50–950 ramp

primary
#D1AF37
secondary
#909FD4
accent
#66E642
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #D1AF37

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

Preview Lab → · Contrast checker → · Palette generator →

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