#5B5215#5B5215

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

Color values

HEX#5B5215
RGBrgb(91, 82, 21)
HSLhsl(52, 63%, 22%)
HSVhsv(52, 77%, 36%)
CMYKcmyk(0%, 9.9%, 76.9%, 64.3%)
CIE-LABlab(34.63, -4.07, 35.23)
CIE-LCHlch(34.63, 35.46, 96.59°)
OKLaboklab(43.51% -0.0147 0.0782)
OKLCHoklch(43.51% 0.08 100.7)
XYZxyz(7.4674, 8.3132, 1.9206)
Luminance0.0831 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5215 #151E5B
analogous
#5B2F15 #5B5215 #415B15
triadic
#5B5215 #155B52 #52155B
tetradic
#5B5215 #155B2F #151E5B #5B1541
square
#5B5215 #155B2F #151E5B #5B1541
split-complementary
#5B5215 #15415B #2F155B
monochromatic
#191606 #29250A #5B5215 #8D7F20 #BEAC2C

Accessibility & contrast

On white

7.89
#5B5215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B5215
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5215#FFFFFF#000000##FFFFFF
##5B52151.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F0B
Deuteranopia (green-blind)
#5D5319
Tritanopia (blue-blind)
#634C46
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b5215;
/* rgb */ color: rgb(91, 82, 21);
/* oklch */ color: oklch(43.5% 0.080 100.7);
Tailwind
colors: {
  custom: {
    50: '#8c8257',
    500: '#5b5215',
    950: '#000000',
  },
}
SCSS
$custom: #5b5215;
$custom-light: #8c8257;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5215",
  "rgb": {
    "r": 91,
    "g": 82,
    "b": 21
  },
  "hsl": {
    "h": 52.286,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.43505,
    "c": 0.07956,
    "h": 100.7
  },
  "luminance": 0.08313
}

Semantic roles & 50–950 ramp

primary
#5B5215
secondary
#394592
accent
#57E642
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5B5215

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

Preview Lab → · Contrast checker → · Palette generator →

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