#D5AF38#D5AF38

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

Color values

HEX#D5AF38
RGBrgb(213, 175, 56)
HSLhsl(45, 65%, 53%)
HSVhsv(45, 74%, 84%)
CMYKcmyk(0%, 17.8%, 73.7%, 16.5%)
CIE-LABlab(72.95, 1.86, 62.67)
CIE-LCHlch(72.95, 62.70, 88.30°)
OKLaboklab(76.76% -0.0011 0.1383)
OKLCHoklch(76.76% 0.138 90.5)
XYZxyz(43.4868, 45.0943, 10.1542)
Luminance0.4509 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5AF38 #385ED5
analogous
#D56138 #D5AF38 #ACD538
triadic
#D5AF38 #38D5AF #AF38D5
tetradic
#D5AF38 #38D561 #385ED5 #D538AC
square
#D5AF38 #38D561 #385ED5 #D538AC
split-complementary
#D5AF38 #38ACD5 #6138D5
monochromatic
#79621A #AC8B24 #D5AF38 #E0C36B #EAD89D

Accessibility & contrast

On white

2.10
#D5AF38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.02
#D5AF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5AF38
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5AF38#FFFFFF#000000##000000
##D5AF381.002.1010.0210.02
#FFFFFF2.101.0021.0021.00
#00000010.0221.001.001.00
##00000010.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD25
Deuteranopia (green-blind)
#CCB83E
Tritanopia (blue-blind)
#E7A097
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #d5af38;
/* rgb */ color: rgb(213, 175, 56);
/* oklch */ color: oklch(76.8% 0.138 90.5);
Tailwind
colors: {
  custom: {
    50: '#e6c676',
    500: '#d5af38',
    950: '#000000',
  },
}
SCSS
$custom: #d5af38;
$custom-light: #e6c676;
$custom-dark: #000000;
JSON
{
  "hex": "#d5af38",
  "rgb": {
    "r": 213,
    "g": 175,
    "b": 56
  },
  "hsl": {
    "h": 45.478,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.7676,
    "c": 0.13829,
    "h": 90.5
  },
  "luminance": 0.45092
}

Semantic roles & 50–950 ramp

primary
#D5AF38
secondary
#92A3D6
accent
#68E840
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#171309
muted
#85827B

Preview Lab

Preview with #D5AF38

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

Preview Lab → · Contrast checker → · Palette generator →

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