#D5AF3D#D5AF3D

#D5AF3D is a light, vivid yellow. Relative luminance 0.451; OKLCH L 76.8% C 0.135 H 90.0°. Best body text is #000000 at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#D5AF3D
RGBrgb(213, 175, 61)
HSLhsl(45, 64%, 54%)
HSVhsv(45, 71%, 84%)
CMYKcmyk(0%, 17.8%, 71.4%, 16.5%)
CIE-LABlab(72.99, 2.09, 60.76)
CIE-LCHlch(72.99, 60.80, 88.03°)
OKLaboklab(76.8% 0.0001 0.1352)
OKLCHoklch(76.8% 0.135 90)
XYZxyz(43.6153, 45.1457, 10.8307)
Luminance0.4514 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5AF3D #3D63D5
analogous
#D5633D #D5AF3D #AFD53D
triadic
#D5AF3D #3DD5AF #AF3DD5
tetradic
#D5AF3D #3DD563 #3D63D5 #D53DAF
square
#D5AF3D #3DD563 #3D63D5 #D53DAF
split-complementary
#D5AF3D #3DAFD5 #633DD5
monochromatic
#7D641B #AF8D26 #D5AF3D #E0C46F #EBD8A2

Accessibility & contrast

On white

2.09
#D5AF3D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.03
#D5AF3D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5AF3D
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5AF3D#FFFFFF#000000##000000
##D5AF3D1.002.0910.0310.03
#FFFFFF2.091.0021.0021.00
#00000010.0321.001.001.00
##00000010.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD2D
Deuteranopia (green-blind)
#CCB843
Tritanopia (blue-blind)
#E6A098
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #d5af3d;
/* rgb */ color: rgb(213, 175, 61);
/* oklch */ color: oklch(76.8% 0.135 90.0);
Tailwind
colors: {
  custom: {
    50: '#e6c679',
    500: '#d5af3d',
    950: '#000000',
  },
}
SCSS
$custom: #d5af3d;
$custom-light: #e6c679;
$custom-dark: #000000;
JSON
{
  "hex": "#d5af3d",
  "rgb": {
    "r": 213,
    "g": 175,
    "b": 61
  },
  "hsl": {
    "h": 45,
    "s": 64.407,
    "l": 53.725
  },
  "oklch": {
    "l": 0.76797,
    "c": 0.13519,
    "h": 90
  },
  "luminance": 0.45143
}

Semantic roles & 50–950 ramp

primary
#D5AF3D
secondary
#96A7D7
accent
#6AE740
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #D5AF3D

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

Preview Lab → · Contrast checker → · Palette generator →

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