#D9B42E#D9B42E

#D9B42E is a light, vivid yellow. Relative luminance 0.476; OKLCH L 78.1% C 0.147 H 92.4°. Best body text is #000000 at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#D9B42E
RGBrgb(217, 180, 46)
HSLhsl(47, 69%, 52%)
HSVhsv(47, 79%, 85%)
CMYKcmyk(0%, 17.1%, 78.8%, 14.9%)
CIE-LABlab(74.57, 0.56, 67.83)
CIE-LCHlch(74.57, 67.83, 89.53°)
OKLaboklab(78.11% -0.0061 0.1471)
OKLCHoklch(78.11% 0.147 92.4)
XYZxyz(45.4323, 47.5943, 9.3779)
Luminance0.4759 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9B42E #2E53D9
analogous
#D95F2E #D9B42E #A8D92E
triadic
#D9B42E #2ED9B4 #B42ED9
tetradic
#D9B42E #2ED95F #2E53D9 #D92EA8
square
#D9B42E #2ED95F #2E53D9 #D92EA8
split-complementary
#D9B42E #2EA8D9 #5F2ED9
monochromatic
#776216 #AB8D1F #D9B42E #E2C762 #ECD996

Accessibility & contrast

On white

2.00
#D9B42E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.52
#D9B42E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9B42E
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9B42E#FFFFFF#000000##000000
##D9B42E1.002.0010.5210.52
#FFFFFF2.001.0021.0021.00
#00000010.5221.001.001.00
##00000010.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B10D
Deuteranopia (green-blind)
#D2BC37
Tritanopia (blue-blind)
#EBA59B
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #d9b42e;
/* rgb */ color: rgb(217, 180, 46);
/* oklch */ color: oklch(78.1% 0.147 92.4);
Tailwind
colors: {
  custom: {
    50: '#e9ca72',
    500: '#d9b42e',
    950: '#000000',
  },
}
SCSS
$custom: #d9b42e;
$custom-light: #e9ca72;
$custom-dark: #000000;
JSON
{
  "hex": "#d9b42e",
  "rgb": {
    "r": 217,
    "g": 180,
    "b": 46
  },
  "hsl": {
    "h": 47.018,
    "s": 69.231,
    "l": 51.569
  },
  "oklch": {
    "l": 0.78106,
    "c": 0.14724,
    "h": 92.4
  },
  "luminance": 0.47591
}

Semantic roles & 50–950 ramp

primary
#D9B42E
secondary
#8C9CD7
accent
#62EC3C
background
#FFFCF7
surface
#FEF8ED
border
#D6D1C8
text
#171309
muted
#85827B

Preview Lab

Preview with #D9B42E

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

Preview Lab → · Contrast checker → · Palette generator →

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