#D1AB28#D1AB28

#D1AB28 is a light, vivid yellow. Relative luminance 0.428; OKLCH L 75.4% C 0.144 H 91.3°. Best body text is #000000 at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#D1AB28
RGBrgb(209, 171, 40)
HSLhsl(47, 68%, 49%)
HSVhsv(47, 81%, 82%)
CMYKcmyk(0%, 18.2%, 80.9%, 18%)
CIE-LABlab(71.44, 1.62, 66.64)
CIE-LCHlch(71.44, 66.66, 88.61°)
OKLaboklab(75.45% -0.0032 0.1437)
OKLCHoklch(75.45% 0.144 91.3)
XYZxyz(41.2429, 42.8370, 8.1032)
Luminance0.4283 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1AB28 #284ED1
analogous
#D15728 #D1AB28 #A3D128
triadic
#D1AB28 #28D1AB #AB28D1
tetradic
#D1AB28 #28D157 #284ED1 #D128A3
square
#D1AB28 #28D157 #284ED1 #D128A3
split-complementary
#D1AB28 #28A3D1 #5728D1
monochromatic
#6A5714 #9E811E #D1AB28 #DFC057 #E9D48B

Accessibility & contrast

On white

2.20
#D1AB28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.57
#D1AB28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1AB28
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1AB28#FFFFFF#000000##000000
##D1AB281.002.209.579.57
#FFFFFF2.201.0021.0021.00
#0000009.5721.001.001.00
##0000009.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA901
Deuteranopia (green-blind)
#C8B331
Tritanopia (blue-blind)
#E39C93
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d1ab28;
/* rgb */ color: rgb(209, 171, 40);
/* oklch */ color: oklch(75.4% 0.144 91.3);
Tailwind
colors: {
  custom: {
    50: '#e4c36e',
    500: '#d1ab28',
    950: '#000000',
  },
}
SCSS
$custom: #d1ab28;
$custom-light: #e4c36e;
$custom-dark: #000000;
JSON
{
  "hex": "#d1ab28",
  "rgb": {
    "r": 209,
    "g": 171,
    "b": 40
  },
  "hsl": {
    "h": 46.509,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.7545,
    "c": 0.14375,
    "h": 91.3
  },
  "luminance": 0.42834
}

Semantic roles & 50–950 ramp

primary
#D1AB28
secondary
#8294D3
accent
#64EB3D
background
#FEFBF7
surface
#FDF7ED
border
#D5D0C8
text
#161208
muted
#84817B

Preview Lab

Preview with #D1AB28

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

Preview Lab → · Contrast checker → · Palette generator →

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