#D1A728#D1A728

#D1A728 is a light, vivid yellow. Relative luminance 0.413; OKLCH L 74.6% C 0.142 H 88.8°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#D1A728
RGBrgb(209, 167, 40)
HSLhsl(45, 68%, 49%)
HSVhsv(45, 81%, 82%)
CMYKcmyk(0%, 20.1%, 80.9%, 18%)
CIE-LABlab(70.42, 3.75, 65.74)
CIE-LCHlch(70.42, 65.85, 86.74°)
OKLaboklab(74.64% 0.0029 0.1418)
OKLCHoklch(74.64% 0.142 88.8)
XYZxyz(40.4988, 41.3487, 7.8551)
Luminance0.4135 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1A728 #2852D1
analogous
#D15328 #D1A728 #A7D128
triadic
#D1A728 #28D1A7 #A728D1
tetradic
#D1A728 #28D153 #2852D1 #D128A7
square
#D1A728 #28D153 #2852D1 #D128A7
split-complementary
#D1A728 #28A7D1 #5328D1
monochromatic
#6A5514 #9E7E1E #D1A728 #DFBD57 #E9D18B

Accessibility & contrast

On white

2.27
#D1A728 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.27
#D1A728 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1A728
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1A728#FFFFFF#000000##000000
##D1A7281.002.279.279.27
#FFFFFF2.271.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA604
Deuteranopia (green-blind)
#C6B130
Tritanopia (blue-blind)
#E3988F
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d1a728;
/* rgb */ color: rgb(209, 167, 40);
/* oklch */ color: oklch(74.6% 0.142 88.8);
Tailwind
colors: {
  custom: {
    50: '#e4c06e',
    500: '#d1a728',
    950: '#000000',
  },
}
SCSS
$custom: #d1a728;
$custom-light: #e4c06e;
$custom-dark: #000000;
JSON
{
  "hex": "#d1a728",
  "rgb": {
    "r": 209,
    "g": 167,
    "b": 40
  },
  "hsl": {
    "h": 45.089,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.74642,
    "c": 0.14179,
    "h": 88.8
  },
  "luminance": 0.41346
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D1A728

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

Preview Lab → · Contrast checker → · Palette generator →

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