#D2B939#D2B939

#D2B939 is a light, vivid yellow. Relative luminance 0.487; OKLCH L 78.5% C 0.144 H 97.8°. Best body text is #000000 at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#D2B939
RGBrgb(210, 185, 57)
HSLhsl(50, 63%, 52%)
HSVhsv(50, 73%, 82%)
CMYKcmyk(0%, 11.9%, 72.9%, 17.6%)
CIE-LABlab(75.26, -4.64, 64.44)
CIE-LCHlch(75.26, 64.60, 94.12°)
OKLaboklab(78.52% -0.0194 0.1424)
OKLCHoklch(78.52% 0.144 97.8)
XYZxyz(44.6680, 48.6972, 10.9168)
Luminance0.4869 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2B939 #3952D2
analogous
#D26C39 #D2B939 #9FD239
triadic
#D2B939 #39D2B9 #B939D2
tetradic
#D2B939 #39D26C #3952D2 #D2399F
square
#D2B939 #39D26C #3952D2 #D2399F
split-complementary
#D2B939 #399FD2 #6C39D2
monochromatic
#76671B #A89326 #D2B939 #DDCB6B #E9DC9D

Accessibility & contrast

On white

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

On black

10.74
#D2B939 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2B939
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2B939#FFFFFF#000000##000000
##D2B9391.001.9610.7410.74
#FFFFFF1.961.0021.0021.00
#00000010.7421.001.001.00
##00000010.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2b939;
/* rgb */ color: rgb(210, 185, 57);
/* oklch */ color: oklch(78.5% 0.144 97.8);
Tailwind
colors: {
  custom: {
    50: '#e4cd78',
    500: '#d2b939',
    950: '#000000',
  },
}
SCSS
$custom: #d2b939;
$custom-light: #e4cd78;
$custom-dark: #000000;
JSON
{
  "hex": "#d2b939",
  "rgb": {
    "r": 210,
    "g": 185,
    "b": 57
  },
  "hsl": {
    "h": 50.196,
    "s": 62.963,
    "l": 52.353
  },
  "oklch": {
    "l": 0.7852,
    "c": 0.14367,
    "h": 97.8
  },
  "luminance": 0.48695
}

Semantic roles & 50–950 ramp

primary
#D2B939
secondary
#929DD5
accent
#5DE642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #D2B939

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

Preview Lab → · Contrast checker → · Palette generator →

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