#D2AF40#D2AF40

#D2AF40 is a light, vivid yellow. Relative luminance 0.447; OKLCH L 76.5% C 0.133 H 91.2°. Best body text is #000000 at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#D2AF40
RGBrgb(210, 175, 64)
HSLhsl(46, 62%, 54%)
HSVhsv(46, 70%, 82%)
CMYKcmyk(0%, 16.7%, 69.5%, 17.6%)
CIE-LABlab(72.72, 0.95, 59.17)
CIE-LCHlch(72.72, 59.18, 89.08°)
OKLaboklab(76.52% -0.0027 0.1325)
OKLCHoklch(76.52% 0.133 91.2)
XYZxyz(42.8360, 44.7343, 11.2278)
Luminance0.4473 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2AF40 #4063D2
analogous
#D26640 #D2AF40 #ACD240
triadic
#D2AF40 #40D2AF #AF40D2
tetradic
#D2AF40 #40D266 #4063D2 #D240AC
square
#D2AF40 #40D266 #4063D2 #D240AC
split-complementary
#D2AF40 #40ACD2 #6640D2
monochromatic
#7B641D #AC8D29 #D2AF40 #DEC472 #E9D8A3

Accessibility & contrast

On white

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

On black

9.95
#D2AF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2AF40
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2AF40#FFFFFF#000000##000000
##D2AF401.002.119.959.95
#FFFFFF2.111.0021.0021.00
#0000009.9521.001.001.00
##0000009.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2af40;
/* rgb */ color: rgb(210, 175, 64);
/* oklch */ color: oklch(76.5% 0.133 91.2);
Tailwind
colors: {
  custom: {
    50: '#e4c67b',
    500: '#d2af40',
    950: '#000000',
  },
}
SCSS
$custom: #d2af40;
$custom-light: #e4c67b;
$custom-dark: #000000;
JSON
{
  "hex": "#d2af40",
  "rgb": {
    "r": 210,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 45.616,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.76523,
    "c": 0.13251,
    "h": 91.2
  },
  "luminance": 0.44732
}

Semantic roles & 50–950 ramp

primary
#D2AF40
secondary
#98A7D6
accent
#6AE543
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D2AF40

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

Preview Lab → · Contrast checker → · Palette generator →

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