#5B581A#5B581A

#5B581A is a mid, moderate yellow. Relative luminance 0.093; OKLCH L 45.0% C 0.082 H 106.6°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5B581A
RGBrgb(91, 88, 26)
HSLhsl(57, 56%, 23%)
HSVhsv(57, 71%, 36%)
CMYKcmyk(0%, 3.3%, 71.4%, 64.3%)
CIE-LABlab(36.51, -7.32, 34.88)
CIE-LCHlch(36.51, 35.64, 101.85°)
OKLaboklab(45.02% -0.0233 0.0784)
OKLCHoklch(45.02% 0.082 106.6)
XYZxyz(7.9909, 9.2784, 2.3471)
Luminance0.0928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B581A #1A1D5B
analogous
#5B371A #5B581A #3D5B1A
triadic
#5B581A #1A5B58 #581A5B
tetradic
#5B581A #1A5B37 #1A1D5B #5B1A3D
square
#5B581A #1A5B37 #1A1D5B #5B1A3D
split-complementary
#5B581A #1A3D5B #371A5B
monochromatic
#181707 #2B2A0C #5B581A #8B8628 #BAB435

Accessibility & contrast

On white

7.35
#5B581A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5B581A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B581A
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B581A#FFFFFF#000000##FFFFFF
##5B581A1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605411
Deuteranopia (green-blind)
#61571E
Tritanopia (blue-blind)
#62524B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b581a;
/* rgb */ color: rgb(91, 88, 26);
/* oklch */ color: oklch(45.0% 0.082 106.6);
Tailwind
colors: {
  custom: {
    50: '#8c865a',
    500: '#5b581a',
    950: '#000000',
  },
}
SCSS
$custom: #5b581a;
$custom-light: #8c865a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b581a",
  "rgb": {
    "r": 91,
    "g": 88,
    "b": 26
  },
  "hsl": {
    "h": 57.231,
    "s": 55.556,
    "l": 22.941
  },
  "oklch": {
    "l": 0.4502,
    "c": 0.08184,
    "h": 106.6
  },
  "luminance": 0.09278
}

Semantic roles & 50–950 ramp

primary
#5B581A
secondary
#404491
accent
#50DF49
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B04
muted
#7D7C79

Preview Lab

Preview with #5B581A

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

Preview Lab → · Contrast checker → · Palette generator →

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