#5B5812#5B5812

#5B5812 is a dark, moderate yellow. Relative luminance 0.092; OKLCH L 45.0% C 0.088 H 106.9°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#5B5812
RGBrgb(91, 88, 18)
HSLhsl(58, 67%, 21%)
HSVhsv(58, 80%, 36%)
CMYKcmyk(0%, 3.3%, 80.2%, 64.3%)
CIE-LABlab(36.46, -7.77, 38.20)
CIE-LCHlch(36.46, 38.99, 101.50°)
OKLaboklab(44.96% -0.0255 0.0839)
OKLCHoklch(44.96% 0.088 106.9)
XYZxyz(7.9136, 9.2475, 1.9403)
Luminance0.0925 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5812 #12155B
analogous
#5B3412 #5B5812 #3A5B12
triadic
#5B5812 #125B58 #58125B
tetradic
#5B5812 #125B34 #12155B #5B123A
square
#5B5812 #125B34 #12155B #5B123A
split-complementary
#5B5812 #123A5B #34125B
monochromatic
#1A1905 #282708 #5B5812 #8E891C #C1BB26

Accessibility & contrast

On white

7.37
#5B5812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5B5812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B5812
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5812#FFFFFF#000000##FFFFFF
##5B58121.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605404
Deuteranopia (green-blind)
#625717
Tritanopia (blue-blind)
#62524B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b5812;
/* rgb */ color: rgb(91, 88, 18);
/* oklch */ color: oklch(45.0% 0.088 106.9);
Tailwind
colors: {
  custom: {
    50: '#8c8656',
    500: '#5b5812',
    950: '#000000',
  },
}
SCSS
$custom: #5b5812;
$custom-light: #8c8656;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5812",
  "rgb": {
    "r": 91,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 57.534,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.44955,
    "c": 0.08766,
    "h": 106.9
  },
  "luminance": 0.09247
}

Semantic roles & 50–950 ramp

primary
#5B5812
secondary
#353993
accent
#45EA3E
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5B5812

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

Preview Lab → · Contrast checker → · Palette generator →

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