#5B591B#5B591B

#5B591B is a mid, moderate yellow. Relative luminance 0.094; OKLCH L 45.3% C 0.082 H 107.5°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#5B591B
RGBrgb(91, 89, 27)
HSLhsl(58, 54%, 23%)
HSVhsv(58, 70%, 36%)
CMYKcmyk(0%, 2.2%, 70.3%, 64.3%)
CIE-LABlab(36.83, -7.84, 34.75)
CIE-LCHlch(36.83, 35.62, 102.71°)
OKLaboklab(45.28% -0.0247 0.0783)
OKLCHoklch(45.28% 0.082 107.5)
XYZxyz(8.0849, 9.4483, 2.4345)
Luminance0.0945 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B591B #1B1D5B
analogous
#5B391B #5B591B #3D5B1B
triadic
#5B591B #1B5B59 #591B5B
tetradic
#5B591B #1B5B39 #1B1D5B #5B1B3D
square
#5B591B #1B5B39 #1B1D5B #5B1B3D
split-complementary
#5B591B #1B3D5B #391B5B
monochromatic
#181707 #2C2B0D #5B591B #8A8729 #B9B537

Accessibility & contrast

On white

7.27
#5B591B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5B591B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B591B
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B591B#FFFFFF#000000##FFFFFF
##5B591B1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615513
Deuteranopia (green-blind)
#62581F
Tritanopia (blue-blind)
#62534C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b591b;
/* rgb */ color: rgb(91, 89, 27);
/* oklch */ color: oklch(45.3% 0.082 107.5);
Tailwind
colors: {
  custom: {
    50: '#8c875b',
    500: '#5b591b',
    950: '#000000',
  },
}
SCSS
$custom: #5b591b;
$custom-light: #8c875b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b591b",
  "rgb": {
    "r": 91,
    "g": 89,
    "b": 27
  },
  "hsl": {
    "h": 58.125,
    "s": 54.237,
    "l": 23.137
  },
  "oklch": {
    "l": 0.45276,
    "c": 0.08213,
    "h": 107.5
  },
  "luminance": 0.09448
}

Semantic roles & 50–950 ramp

primary
#5B591B
secondary
#414491
accent
#4FDE4A
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B04
muted
#7D7C79

Preview Lab

Preview with #5B591B

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

Preview Lab → · Contrast checker → · Palette generator →

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