#D1AF3C#D1AF3C

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

Color values

HEX#D1AF3C
RGBrgb(209, 175, 60)
HSLhsl(46, 62%, 53%)
HSVhsv(46, 71%, 82%)
CMYKcmyk(0%, 16.3%, 71.3%, 18%)
CIE-LABlab(72.59, 0.31, 60.63)
CIE-LCHlch(72.59, 60.63, 89.70°)
OKLaboklab(76.39% -0.0049 0.1349)
OKLCHoklch(76.39% 0.135 92.1)
XYZxyz(42.4424, 44.5440, 10.6364)
Luminance0.4454 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1AF3C #3C5ED1
analogous
#D1653C #D1AF3C #A8D13C
triadic
#D1AF3C #3CD1AF #AF3CD1
tetradic
#D1AF3C #3CD165 #3C5ED1 #D13CA8
square
#D1AF3C #3CD165 #3C5ED1 #D13CA8
split-complementary
#D1AF3C #3CA8D1 #653CD1
monochromatic
#77621C #A88B28 #D1AF3C #DDC36E #E8D89F

Accessibility & contrast

On white

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

On black

9.91
#D1AF3C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1AF3C
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1AF3C#FFFFFF#000000##000000
##D1AF3C1.002.129.919.91
#FFFFFF2.121.0021.0021.00
#0000009.9121.001.001.00
##0000009.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC2B
Deuteranopia (green-blind)
#CAB642
Tritanopia (blue-blind)
#E2A198
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #d1af3c;
/* rgb */ color: rgb(209, 175, 60);
/* oklch */ color: oklch(76.4% 0.135 92.1);
Tailwind
colors: {
  custom: {
    50: '#e3c679',
    500: '#d1af3c',
    950: '#000000',
  },
}
SCSS
$custom: #d1af3c;
$custom-light: #e3c679;
$custom-dark: #000000;
JSON
{
  "hex": "#d1af3c",
  "rgb": {
    "r": 209,
    "g": 175,
    "b": 60
  },
  "hsl": {
    "h": 46.309,
    "s": 61.826,
    "l": 52.745
  },
  "oklch": {
    "l": 0.76392,
    "c": 0.13497,
    "h": 92.1
  },
  "luminance": 0.44541
}

Semantic roles & 50–950 ramp

primary
#D1AF3C
secondary
#94A3D5
accent
#68E543
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #D1AF3C

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

Preview Lab → · Contrast checker → · Palette generator →

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