#D1AC38#D1AC38

#D1AC38 is a light, vivid yellow. Relative luminance 0.433; OKLCH L 75.8% C 0.136 H 90.6°. Best body text is #000000 at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#D1AC38
RGBrgb(209, 172, 56)
HSLhsl(45, 62%, 52%)
HSVhsv(45, 73%, 82%)
CMYKcmyk(0%, 17.7%, 73.2%, 18%)
CIE-LABlab(71.79, 1.71, 61.41)
CIE-LCHlch(71.79, 61.43, 88.40°)
OKLaboklab(75.75% -0.0013 0.1358)
OKLCHoklch(75.75% 0.136 90.6)
XYZxyz(41.7632, 43.3485, 9.9080)
Luminance0.4335 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1AC38 #385DD1
analogous
#D16038 #D1AC38 #AAD138
triadic
#D1AC38 #38D1AC #AC38D1
tetradic
#D1AC38 #38D160 #385DD1 #D138AA
square
#D1AC38 #38D160 #385DD1 #D138AA
split-complementary
#D1AC38 #38AAD1 #6038D1
monochromatic
#745E1B #A68726 #D1AC38 #DCC16A #E8D59B

Accessibility & contrast

On white

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

On black

9.67
#D1AC38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1AC38
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1AC38#FFFFFF#000000##000000
##D1AC381.002.179.679.67
#FFFFFF2.171.0021.0021.00
#0000009.6721.001.001.00
##0000009.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA26
Deuteranopia (green-blind)
#C8B43E
Tritanopia (blue-blind)
#E29E95
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d1ac38;
/* rgb */ color: rgb(209, 172, 56);
/* oklch */ color: oklch(75.8% 0.136 90.6);
Tailwind
colors: {
  custom: {
    50: '#e3c476',
    500: '#d1ac38',
    950: '#000000',
  },
}
SCSS
$custom: #d1ac38;
$custom-light: #e3c476;
$custom-dark: #000000;
JSON
{
  "hex": "#d1ac38",
  "rgb": {
    "r": 209,
    "g": 172,
    "b": 56
  },
  "hsl": {
    "h": 45.49,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.75752,
    "c": 0.13578,
    "h": 90.6
  },
  "luminance": 0.43346
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D1AC38

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

Preview Lab → · Contrast checker → · Palette generator →

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