#D3AF40#D3AF40

#D3AF40 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 76.6% C 0.133 H 90.6°. Best body text is #000000 at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#D3AF40
RGBrgb(211, 175, 64)
HSLhsl(45, 63%, 54%)
HSVhsv(45, 70%, 83%)
CMYKcmyk(0%, 17.1%, 69.7%, 17.3%)
CIE-LABlab(72.81, 1.38, 59.30)
CIE-LCHlch(72.81, 59.32, 88.67°)
OKLaboklab(76.62% -0.0015 0.1327)
OKLCHoklch(76.62% 0.133 90.6)
XYZxyz(43.1217, 44.8816, 11.2412)
Luminance0.4488 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3AF40 #4064D3
analogous
#D36640 #D3AF40 #AED340
triadic
#D3AF40 #40D3AF #AF40D3
tetradic
#D3AF40 #40D366 #4064D3 #D340AE
square
#D3AF40 #40D366 #4064D3 #D340AE
split-complementary
#D3AF40 #40AED3 #6640D3
monochromatic
#7C651D #AE8D28 #D3AF40 #DEC472 #EAD9A3

Accessibility & contrast

On white

2.11
#D3AF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.98
#D3AF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3AF40
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3AF40#FFFFFF#000000##000000
##D3AF401.002.119.989.98
#FFFFFF2.111.0021.0021.00
#0000009.9821.001.001.00
##0000009.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d3af40;
/* rgb */ color: rgb(211, 175, 64);
/* oklch */ color: oklch(76.6% 0.133 90.6);
Tailwind
colors: {
  custom: {
    50: '#e4c67b',
    500: '#d3af40',
    950: '#000000',
  },
}
SCSS
$custom: #d3af40;
$custom-light: #e4c67b;
$custom-dark: #000000;
JSON
{
  "hex": "#d3af40",
  "rgb": {
    "r": 211,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 45.306,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.76622,
    "c": 0.13273,
    "h": 90.6
  },
  "luminance": 0.44879
}

Semantic roles & 50–950 ramp

primary
#D3AF40
secondary
#98A7D7
accent
#6AE642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D3AF40

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

Preview Lab → · Contrast checker → · Palette generator →

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