#5B5015#5B5015

#5B5015 is a dark, moderate yellow. Relative luminance 0.080; OKLCH L 43.0% C 0.078 H 98.4°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#5B5015
RGBrgb(91, 80, 21)
HSLhsl(51, 63%, 22%)
HSVhsv(51, 77%, 36%)
CMYKcmyk(0%, 12.1%, 76.9%, 64.3%)
CIE-LABlab(34.02, -2.87, 34.62)
CIE-LCHlch(34.02, 34.74, 94.74°)
OKLaboklab(43.02% -0.0113 0.0769)
OKLCHoklch(43.02% 0.078 98.4)
XYZxyz(7.3188, 8.0160, 1.8711)
Luminance0.0802 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5015 #15205B
analogous
#5B2D15 #5B5015 #435B15
triadic
#5B5015 #155B50 #50155B
tetradic
#5B5015 #155B2D #15205B #5B1543
square
#5B5015 #155B2D #15205B #5B1543
split-complementary
#5B5015 #15435B #2D155B
monochromatic
#191606 #29240A #5B5015 #8D7C20 #BEA72C

Accessibility & contrast

On white

8.07
#5B5015 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5B5015 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B5015
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5015#FFFFFF#000000##FFFFFF
##5B50151.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E0C
Deuteranopia (green-blind)
#5B5219
Tritanopia (blue-blind)
#634A44
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b5015;
/* rgb */ color: rgb(91, 80, 21);
/* oklch */ color: oklch(43.0% 0.078 98.4);
Tailwind
colors: {
  custom: {
    50: '#8c8057',
    500: '#5b5015',
    950: '#000000',
  },
}
SCSS
$custom: #5b5015;
$custom-light: #8c8057;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5015",
  "rgb": {
    "r": 91,
    "g": 80,
    "b": 21
  },
  "hsl": {
    "h": 50.571,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.43021,
    "c": 0.07774,
    "h": 98.4
  },
  "luminance": 0.08016
}

Semantic roles & 50–950 ramp

primary
#5B5015
secondary
#394792
accent
#5CE642
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5B5015

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

Preview Lab → · Contrast checker → · Palette generator →

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