#D2AF38#D2AF38

#D2AF38 is a light, vivid yellow. Relative luminance 0.446; OKLCH L 76.5% C 0.138 H 92.0°. Best body text is #000000 at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#D2AF38
RGBrgb(210, 175, 56)
HSLhsl(46, 63%, 52%)
HSVhsv(46, 73%, 82%)
CMYKcmyk(0%, 16.7%, 73.3%, 17.6%)
CIE-LABlab(72.66, 0.56, 62.29)
CIE-LCHlch(72.66, 62.29, 89.49°)
OKLaboklab(76.46% -0.0047 0.1376)
OKLCHoklch(76.46% 0.138 92)
XYZxyz(42.6245, 44.6497, 10.1138)
Luminance0.4465 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2AF38 #385BD2
analogous
#D26238 #D2AF38 #A8D238
triadic
#D2AF38 #38D2AF #AF38D2
tetradic
#D2AF38 #38D262 #385BD2 #D238A8
square
#D2AF38 #38D262 #385BD2 #D238A8
split-complementary
#D2AF38 #38A8D2 #6238D2
monochromatic
#75611A #A78A26 #D2AF38 #DDC36A #E9D79C

Accessibility & contrast

On white

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

On black

9.93
#D2AF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2AF38
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2AF38#FFFFFF#000000##000000
##D2AF381.002.119.939.93
#FFFFFF2.111.0021.0021.00
#0000009.9321.001.001.00
##0000009.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC25
Deuteranopia (green-blind)
#CBB73F
Tritanopia (blue-blind)
#E3A197
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #d2af38;
/* rgb */ color: rgb(210, 175, 56);
/* oklch */ color: oklch(76.5% 0.138 92.0);
Tailwind
colors: {
  custom: {
    50: '#e4c676',
    500: '#d2af38',
    950: '#000000',
  },
}
SCSS
$custom: #d2af38;
$custom-light: #e4c676;
$custom-dark: #000000;
JSON
{
  "hex": "#d2af38",
  "rgb": {
    "r": 210,
    "g": 175,
    "b": 56
  },
  "hsl": {
    "h": 46.364,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.76461,
    "c": 0.13768,
    "h": 92
  },
  "luminance": 0.44647
}

Semantic roles & 50–950 ramp

primary
#D2AF38
secondary
#91A1D5
accent
#67E642
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #D2AF38

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

Preview Lab → · Contrast checker → · Palette generator →

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