#D1AD28#D1AD28

#D1AD28 is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.9% C 0.145 H 92.5°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#D1AD28
RGBrgb(209, 173, 40)
HSLhsl(47, 68%, 49%)
HSVhsv(47, 81%, 82%)
CMYKcmyk(0%, 17.2%, 80.9%, 18%)
CIE-LABlab(71.96, 0.56, 67.09)
CIE-LCHlch(71.96, 67.09, 89.52°)
OKLaboklab(75.86% -0.0062 0.1447)
OKLCHoklch(75.86% 0.145 92.5)
XYZxyz(41.6235, 43.5982, 8.2300)
Luminance0.4360 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1AD28 #284CD1
analogous
#D15928 #D1AD28 #A1D128
triadic
#D1AD28 #28D1AD #AD28D1
tetradic
#D1AD28 #28D159 #284CD1 #D128A1
square
#D1AD28 #28D159 #284CD1 #D128A1
split-complementary
#D1AD28 #28A1D1 #5928D1
monochromatic
#6A5814 #9E821E #D1AD28 #DFC257 #E9D58B

Accessibility & contrast

On white

2.16
#D1AD28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.72
#D1AD28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1AD28
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1AD28#FFFFFF#000000##000000
##D1AD281.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#CAB531
Tritanopia (blue-blind)
#E39E95
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d1ad28;
/* rgb */ color: rgb(209, 173, 40);
/* oklch */ color: oklch(75.9% 0.145 92.5);
Tailwind
colors: {
  custom: {
    50: '#e4c56e',
    500: '#d1ad28',
    950: '#000000',
  },
}
SCSS
$custom: #d1ad28;
$custom-light: #e4c56e;
$custom-dark: #000000;
JSON
{
  "hex": "#d1ad28",
  "rgb": {
    "r": 209,
    "g": 173,
    "b": 40
  },
  "hsl": {
    "h": 47.219,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.75856,
    "c": 0.14482,
    "h": 92.5
  },
  "luminance": 0.43596
}

Semantic roles & 50–950 ramp

primary
#D1AD28
secondary
#8293D3
accent
#62EB3D
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161208
muted
#84817B

Preview Lab

Preview with #D1AD28

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

Preview Lab → · Contrast checker → · Palette generator →

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