#5B5216#5B5216

#5B5216 is a dark, moderate yellow. Relative luminance 0.083; OKLCH L 43.5% C 0.079 H 100.6°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#5B5216
RGBrgb(91, 82, 22)
HSLhsl(52, 61%, 22%)
HSVhsv(52, 76%, 36%)
CMYKcmyk(0%, 9.9%, 75.8%, 64.3%)
CIE-LABlab(34.63, -4.01, 34.79)
CIE-LCHlch(34.63, 35.02, 96.58°)
OKLaboklab(43.51% -0.0145 0.0775)
OKLCHoklch(43.51% 0.079 100.6)
XYZxyz(7.4768, 8.3170, 1.9704)
Luminance0.0832 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5216 #161F5B
analogous
#5B3016 #5B5216 #425B16
triadic
#5B5216 #165B52 #52165B
tetradic
#5B5216 #165B30 #161F5B #5B1642
square
#5B5216 #165B30 #161F5B #5B1642
split-complementary
#5B5216 #16425B #30165B
monochromatic
#191606 #2A260A #5B5216 #8C7E22 #BEAB2E

Accessibility & contrast

On white

7.88
#5B5216 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5B5216 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B5216
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5216#FFFFFF#000000##FFFFFF
##5B52161.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F0D
Deuteranopia (green-blind)
#5D531A
Tritanopia (blue-blind)
#624C46
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b5216;
/* rgb */ color: rgb(91, 82, 22);
/* oklch */ color: oklch(43.5% 0.079 100.6);
Tailwind
colors: {
  custom: {
    50: '#8c8258',
    500: '#5b5216',
    950: '#000000',
  },
}
SCSS
$custom: #5b5216;
$custom-light: #8c8258;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5216",
  "rgb": {
    "r": 91,
    "g": 82,
    "b": 22
  },
  "hsl": {
    "h": 52.174,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.43514,
    "c": 0.07881,
    "h": 100.6
  },
  "luminance": 0.08317
}

Semantic roles & 50–950 ramp

primary
#5B5216
secondary
#3B4692
accent
#59E444
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5B5216

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

Preview Lab → · Contrast checker → · Palette generator →

#5B5216 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva