#D3B331#D3B331

#D3B331 is a light, vivid yellow. Relative luminance 0.463; OKLCH L 77.3% C 0.144 H 94.4°. Best body text is #000000 at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#D3B331
RGBrgb(211, 179, 49)
HSLhsl(48, 65%, 51%)
HSVhsv(48, 77%, 83%)
CMYKcmyk(0%, 15.2%, 76.8%, 17.3%)
CIE-LABlab(73.75, -1.41, 65.87)
CIE-LCHlch(73.75, 65.89, 91.22°)
OKLaboklab(77.33% -0.0111 0.1438)
OKLCHoklch(77.33% 0.144 94.4)
XYZxyz(43.5409, 46.3134, 9.5511)
Luminance0.4631 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3B331 #3151D3
analogous
#D36231 #D3B331 #A2D331
triadic
#D3B331 #31D3B3 #B331D3
tetradic
#D3B331 #31D362 #3151D3 #D331A2
square
#D3B331 #31D362 #3151D3 #D331A2
split-complementary
#D3B331 #31A2D3 #6231D3
monochromatic
#716018 #A48A23 #D3B331 #DEC663 #E9D896

Accessibility & contrast

On white

2.05
#D3B331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.26
#D3B331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3B331
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3B331#FFFFFF#000000##000000
##D3B3311.002.0510.2610.26
#FFFFFF2.051.0021.0021.00
#00000010.2621.001.001.00
##00000010.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B016
Deuteranopia (green-blind)
#CEB939
Tritanopia (blue-blind)
#E4A49A
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #d3b331;
/* rgb */ color: rgb(211, 179, 49);
/* oklch */ color: oklch(77.3% 0.144 94.4);
Tailwind
colors: {
  custom: {
    50: '#e5c973',
    500: '#d3b331',
    950: '#000000',
  },
}
SCSS
$custom: #d3b331;
$custom-light: #e5c973;
$custom-dark: #000000;
JSON
{
  "hex": "#d3b331",
  "rgb": {
    "r": 211,
    "g": 179,
    "b": 49
  },
  "hsl": {
    "h": 48.148,
    "s": 64.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.77329,
    "c": 0.14425,
    "h": 94.4
  },
  "luminance": 0.46311
}

Semantic roles & 50–950 ramp

primary
#D3B331
secondary
#8C9AD4
accent
#61E840
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #D3B331

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

Preview Lab → · Contrast checker → · Palette generator →

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