#D1B939#D1B939

#D1B939 is a light, vivid yellow. Relative luminance 0.485; OKLCH L 78.4% C 0.144 H 98.2°. Best body text is #000000 at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#D1B939
RGBrgb(209, 185, 57)
HSLhsl(51, 62%, 52%)
HSVhsv(51, 73%, 82%)
CMYKcmyk(0%, 11.5%, 72.7%, 18%)
CIE-LABlab(75.17, -5.07, 64.32)
CIE-LCHlch(75.17, 64.52, 94.50°)
OKLaboklab(78.43% -0.0206 0.1421)
OKLCHoklch(78.43% 0.144 98.2)
XYZxyz(44.3842, 48.5509, 10.9035)
Luminance0.4855 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1B939 #3951D1
analogous
#D16D39 #D1B939 #9DD139
triadic
#D1B939 #39D1B9 #B939D1
tetradic
#D1B939 #39D16D #3951D1 #D1399D
square
#D1B939 #39D16D #3951D1 #D1399D
split-complementary
#D1B939 #399DD1 #6D39D1
monochromatic
#75661B #A69227 #D1B939 #DDCB6B #E8DC9C

Accessibility & contrast

On white

1.96
#D1B939 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.71
#D1B939 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1B939
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1B939#FFFFFF#000000##000000
##D1B9391.001.9610.7110.71
#FFFFFF1.961.0021.0021.00
#00000010.7121.001.001.00
##00000010.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB424
Deuteranopia (green-blind)
#D2BD41
Tritanopia (blue-blind)
#E1ABA0
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #d1b939;
/* rgb */ color: rgb(209, 185, 57);
/* oklch */ color: oklch(78.4% 0.144 98.2);
Tailwind
colors: {
  custom: {
    50: '#e3cd78',
    500: '#d1b939',
    950: '#000000',
  },
}
SCSS
$custom: #d1b939;
$custom-light: #e3cd78;
$custom-dark: #000000;
JSON
{
  "hex": "#d1b939",
  "rgb": {
    "r": 209,
    "g": 185,
    "b": 57
  },
  "hsl": {
    "h": 50.526,
    "s": 62.295,
    "l": 52.157
  },
  "oklch": {
    "l": 0.78426,
    "c": 0.14361,
    "h": 98.2
  },
  "luminance": 0.48549
}

Semantic roles & 50–950 ramp

primary
#D1B939
secondary
#929CD4
accent
#5CE542
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #D1B939

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

Preview Lab → · Contrast checker → · Palette generator →

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