#5B5115#5B5115

#5B5115 is a dark, moderate yellow. Relative luminance 0.082; OKLCH L 43.3% C 0.079 H 99.6°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#5B5115
RGBrgb(91, 81, 21)
HSLhsl(51, 63%, 22%)
HSVhsv(51, 77%, 36%)
CMYKcmyk(0%, 11%, 76.9%, 64.3%)
CIE-LABlab(34.32, -3.47, 34.93)
CIE-LCHlch(34.32, 35.10, 95.68°)
OKLaboklab(43.26% -0.013 0.0775)
OKLCHoklch(43.26% 0.079 99.6)
XYZxyz(7.3925, 8.1635, 1.8956)
Luminance0.0816 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5115 #151F5B
analogous
#5B2E15 #5B5115 #425B15
triadic
#5B5115 #155B51 #51155B
tetradic
#5B5115 #155B2E #151F5B #5B1542
square
#5B5115 #155B2E #151F5B #5B1542
split-complementary
#5B5115 #15425B #2E155B
monochromatic
#191606 #29250A #5B5115 #8D7D20 #BEAA2C

Accessibility & contrast

On white

7.98
#5B5115 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5B5115 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B5115
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5115#FFFFFF#000000##FFFFFF
##5B51151.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594F0C
Deuteranopia (green-blind)
#5C5219
Tritanopia (blue-blind)
#634B45
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b5115;
/* rgb */ color: rgb(91, 81, 21);
/* oklch */ color: oklch(43.3% 0.079 99.6);
Tailwind
colors: {
  custom: {
    50: '#8c8157',
    500: '#5b5115',
    950: '#000000',
  },
}
SCSS
$custom: #5b5115;
$custom-light: #8c8157;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5115",
  "rgb": {
    "r": 91,
    "g": 81,
    "b": 21
  },
  "hsl": {
    "h": 51.429,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.43263,
    "c": 0.07863,
    "h": 99.6
  },
  "luminance": 0.08163
}

Semantic roles & 50–950 ramp

primary
#5B5115
secondary
#394692
accent
#5AE642
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5B5115

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

Preview Lab → · Contrast checker → · Palette generator →

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