#D3B822#D3B822

#D3B822 is a light, vivid yellow. Relative luminance 0.482; OKLCH L 78.3% C 0.154 H 97.9°. Best body text is #000000 at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#D3B822
RGBrgb(211, 184, 34)
HSLhsl(51, 72%, 48%)
HSVhsv(51, 84%, 83%)
CMYKcmyk(0%, 12.8%, 83.9%, 17.3%)
CIE-LABlab(74.98, -4.51, 71.41)
CIE-LCHlch(74.98, 71.55, 93.61°)
OKLaboklab(78.28% -0.0211 0.1528)
OKLCHoklch(78.28% 0.154 97.9)
XYZxyz(44.2956, 48.2478, 8.4927)
Luminance0.4824 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3B822 #223DD3
analogous
#D35F22 #D3B822 #96D322
triadic
#D3B822 #22D3B8 #B822D3
tetradic
#D3B822 #22D35F #223DD3 #D32296
square
#D3B822 #22D35F #223DD3 #D32296
split-complementary
#D3B822 #2296D3 #5F22D3
monochromatic
#6A5C11 #9E8A1A #D3B822 #E3CC4F #EBDB84

Accessibility & contrast

On white

1.97
#D3B822 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.65
#D3B822 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3B822
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3B822#FFFFFF#000000##000000
##D3B8221.001.9710.6510.65
#FFFFFF1.971.0021.0021.00
#00000010.6521.001.001.00
##00000010.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB300
Deuteranopia (green-blind)
#D3BC2F
Tritanopia (blue-blind)
#E4A99D
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #d3b822;
/* rgb */ color: rgb(211, 184, 34);
/* oklch */ color: oklch(78.3% 0.154 97.9);
Tailwind
colors: {
  custom: {
    50: '#e5cc6d',
    500: '#d3b822',
    950: '#000000',
  },
}
SCSS
$custom: #d3b822;
$custom-light: #e5cc6d;
$custom-dark: #000000;
JSON
{
  "hex": "#d3b822",
  "rgb": {
    "r": 211,
    "g": 184,
    "b": 34
  },
  "hsl": {
    "h": 50.847,
    "s": 72.245,
    "l": 48.039
  },
  "oklch": {
    "l": 0.78283,
    "c": 0.15427,
    "h": 97.9
  },
  "luminance": 0.48245
}

Semantic roles & 50–950 ramp

primary
#D3B822
secondary
#7D8AD4
accent
#55EF39
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#171308
muted
#85827B

Preview Lab

Preview with #D3B822

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

Preview Lab → · Contrast checker → · Palette generator →

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