#D1A828#D1A828

#D1A828 is a light, vivid yellow. Relative luminance 0.417; OKLCH L 74.8% C 0.142 H 89.5°. Best body text is #000000 at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#D1A828
RGBrgb(209, 168, 40)
HSLhsl(45, 68%, 49%)
HSVhsv(45, 81%, 82%)
CMYKcmyk(0%, 19.6%, 80.9%, 18%)
CIE-LABlab(70.67, 3.21, 65.97)
CIE-LCHlch(70.67, 66.04, 87.21°)
OKLaboklab(74.84% 0.0013 0.1422)
OKLCHoklch(74.84% 0.142 89.5)
XYZxyz(40.6827, 41.7165, 7.9164)
Luminance0.4171 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1A828 #2851D1
analogous
#D15428 #D1A828 #A6D128
triadic
#D1A828 #28D1A8 #A828D1
tetradic
#D1A828 #28D154 #2851D1 #D128A6
square
#D1A828 #28D154 #2851D1 #D128A6
split-complementary
#D1A828 #28A6D1 #5428D1
monochromatic
#6A5514 #9E7F1E #D1A828 #DFBE57 #E9D28B

Accessibility & contrast

On white

2.25
#D1A828 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.34
#D1A828 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1A828
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1A828#FFFFFF#000000##000000
##D1A8281.002.259.349.34
#FFFFFF2.251.0021.0021.00
#0000009.3421.001.001.00
##0000009.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA603
Deuteranopia (green-blind)
#C6B230
Tritanopia (blue-blind)
#E39990
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #d1a828;
/* rgb */ color: rgb(209, 168, 40);
/* oklch */ color: oklch(74.8% 0.142 89.5);
Tailwind
colors: {
  custom: {
    50: '#e4c16e',
    500: '#d1a828',
    950: '#000000',
  },
}
SCSS
$custom: #d1a828;
$custom-light: #e4c16e;
$custom-dark: #000000;
JSON
{
  "hex": "#d1a828",
  "rgb": {
    "r": 209,
    "g": 168,
    "b": 40
  },
  "hsl": {
    "h": 45.444,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.74844,
    "c": 0.14226,
    "h": 89.5
  },
  "luminance": 0.41714
}

Semantic roles & 50–950 ramp

primary
#D1A828
secondary
#8296D3
accent
#67EB3D
background
#FEFBF7
surface
#FDF7ED
border
#D5D0C8
text
#171208
muted
#85817B

Preview Lab

Preview with #D1A828

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

Preview Lab → · Contrast checker → · Palette generator →

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