#D2AC38#D2AC38

#D2AC38 is a light, vivid yellow. Relative luminance 0.435; OKLCH L 75.9% C 0.136 H 90.1°. Best body text is #000000 at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#D2AC38
RGBrgb(210, 172, 56)
HSLhsl(45, 63%, 52%)
HSVhsv(45, 73%, 82%)
CMYKcmyk(0%, 18.1%, 73.3%, 17.6%)
CIE-LABlab(71.89, 2.15, 61.54)
CIE-LCHlch(71.89, 61.57, 88.00°)
OKLaboklab(75.85% -0.0001 0.136)
OKLCHoklch(75.85% 0.136 90.1)
XYZxyz(42.0471, 43.4948, 9.9213)
Luminance0.4349 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2AC38 #385ED2
analogous
#D25F38 #D2AC38 #ABD238
triadic
#D2AC38 #38D2AC #AC38D2
tetradic
#D2AC38 #38D25F #385ED2 #D238AB
square
#D2AC38 #38D25F #385ED2 #D238AB
split-complementary
#D2AC38 #38ABD2 #5F38D2
monochromatic
#755F1A #A78726 #D2AC38 #DDC16A #E9D69C

Accessibility & contrast

On white

2.17
#D2AC38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.70
#D2AC38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2AC38
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2AC38#FFFFFF#000000##000000
##D2AC381.002.179.709.70
#FFFFFF2.171.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA26
Deuteranopia (green-blind)
#C9B53E
Tritanopia (blue-blind)
#E39D95
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d2ac38;
/* rgb */ color: rgb(210, 172, 56);
/* oklch */ color: oklch(75.9% 0.136 90.1);
Tailwind
colors: {
  custom: {
    50: '#e4c476',
    500: '#d2ac38',
    950: '#000000',
  },
}
SCSS
$custom: #d2ac38;
$custom-light: #e4c476;
$custom-dark: #000000;
JSON
{
  "hex": "#d2ac38",
  "rgb": {
    "r": 210,
    "g": 172,
    "b": 56
  },
  "hsl": {
    "h": 45.195,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.75853,
    "c": 0.136,
    "h": 90.1
  },
  "luminance": 0.43492
}

Semantic roles & 50–950 ramp

primary
#D2AC38
secondary
#91A2D5
accent
#6AE642
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161209
muted
#84817B

Preview Lab

Preview with #D2AC38

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

Preview Lab → · Contrast checker → · Palette generator →

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