#D2AF42#D2AF42

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

Color values

HEX#D2AF42
RGBrgb(210, 175, 66)
HSLhsl(45, 62%, 54%)
HSVhsv(45, 69%, 82%)
CMYKcmyk(0%, 16.7%, 68.6%, 17.6%)
CIE-LABlab(72.73, 1.06, 58.36)
CIE-LCHlch(72.73, 58.37, 88.96°)
OKLaboklab(76.54% -0.0021 0.1311)
OKLCHoklch(76.54% 0.131 90.9)
XYZxyz(42.8940, 44.7574, 11.5330)
Luminance0.4476 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2AF42 #4265D2
analogous
#D26742 #D2AF42 #ADD242
triadic
#D2AF42 #42D2AF #AF42D2
tetradic
#D2AF42 #42D267 #4265D2 #D242AD
square
#D2AF42 #42D267 #4265D2 #D242AD
split-complementary
#D2AF42 #42ADD2 #6742D2
monochromatic
#7C651E #AD8D29 #D2AF42 #DEC473 #EAD9A5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D2AF42#FFFFFF#000000##000000
##D2AF421.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)
#C2AD34
Deuteranopia (green-blind)
#CAB747
Tritanopia (blue-blind)
#E3A198
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #d2af42;
/* rgb */ color: rgb(210, 175, 66);
/* oklch */ color: oklch(76.5% 0.131 90.9);
Tailwind
colors: {
  custom: {
    50: '#e4c67c',
    500: '#d2af42',
    950: '#000000',
  },
}
SCSS
$custom: #d2af42;
$custom-light: #e4c67c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2af42",
  "rgb": {
    "r": 210,
    "g": 175,
    "b": 66
  },
  "hsl": {
    "h": 45.417,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.7654,
    "c": 0.13112,
    "h": 90.9
  },
  "luminance": 0.44755
}

Semantic roles & 50–950 ramp

primary
#D2AF42
secondary
#99A8D7
accent
#6AE543
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D2AF42

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

Preview Lab → · Contrast checker → · Palette generator →

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