#D3B522#D3B522

#D3B522 is a light, vivid yellow. Relative luminance 0.470; OKLCH L 77.7% C 0.152 H 96.3°. Best body text is #000000 at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#D3B522
RGBrgb(211, 181, 34)
HSLhsl(50, 72%, 48%)
HSVhsv(50, 84%, 83%)
CMYKcmyk(0%, 14.2%, 83.9%, 17.3%)
CIE-LABlab(74.20, -2.94, 70.76)
CIE-LCHlch(74.20, 70.82, 92.38°)
OKLaboklab(77.66% -0.0167 0.1514)
OKLCHoklch(77.66% 0.152 96.3)
XYZxyz(43.6790, 47.0146, 8.2871)
Luminance0.4701 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3B522 #2240D3
analogous
#D35D22 #D3B522 #98D322
triadic
#D3B522 #22D3B5 #B522D3
tetradic
#D3B522 #22D35D #2240D3 #D32298
square
#D3B522 #22D35D #2240D3 #D32298
split-complementary
#D3B522 #2298D3 #5D22D3
monochromatic
#6A5B11 #9E881A #D3B522 #E3CA4F #EBDA84

Accessibility & contrast

On white

2.02
#D3B522 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.40
#D3B522 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3B522
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3B522#FFFFFF#000000##000000
##D3B5221.002.0210.4010.40
#FFFFFF2.021.0021.0021.00
#00000010.4021.001.001.00
##00000010.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B100
Deuteranopia (green-blind)
#D0BA2E
Tritanopia (blue-blind)
#E4A69B
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #d3b522;
/* rgb */ color: rgb(211, 181, 34);
/* oklch */ color: oklch(77.7% 0.152 96.3);
Tailwind
colors: {
  custom: {
    50: '#e5ca6d',
    500: '#d3b522',
    950: '#000000',
  },
}
SCSS
$custom: #d3b522;
$custom-light: #e5ca6d;
$custom-dark: #000000;
JSON
{
  "hex": "#d3b522",
  "rgb": {
    "r": 211,
    "g": 181,
    "b": 34
  },
  "hsl": {
    "h": 49.831,
    "s": 72.245,
    "l": 48.039
  },
  "oklch": {
    "l": 0.77664,
    "c": 0.1523,
    "h": 96.3
  },
  "luminance": 0.47012
}

Semantic roles & 50–950 ramp

primary
#D3B522
secondary
#7D8BD4
accent
#58EF39
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#171308
muted
#85827B

Preview Lab

Preview with #D3B522

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

Preview Lab → · Contrast checker → · Palette generator →

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