#5B581C#5B581C

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

Color values

HEX#5B581C
RGBrgb(91, 88, 28)
HSLhsl(57, 53%, 23%)
HSVhsv(57, 69%, 36%)
CMYKcmyk(0%, 3.3%, 69.2%, 64.3%)
CIE-LABlab(36.53, -7.18, 33.97)
CIE-LCHlch(36.53, 34.72, 101.94°)
OKLaboklab(45.04% -0.0227 0.0769)
OKLCHoklch(45.04% 0.08 106.5)
XYZxyz(8.0140, 9.2877, 2.4689)
Luminance0.0929 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B581C #1C1F5B
analogous
#5B381C #5B581C #3E5B1C
triadic
#5B581C #1C5B58 #581C5B
tetradic
#5B581C #1C5B38 #1C1F5B #5B1C3E
square
#5B581C #1C5B38 #1C1F5B #5B1C3E
split-complementary
#5B581C #1C3E5B #381C5B
monochromatic
#171707 #2C2B0E #5B581C #8A852A #B9B339

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B581C#FFFFFF#000000##FFFFFF
##5B581C1.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)
#605514
Deuteranopia (green-blind)
#615720
Tritanopia (blue-blind)
#62524C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b581c;
/* rgb */ color: rgb(91, 88, 28);
/* oklch */ color: oklch(45.0% 0.080 106.5);
Tailwind
colors: {
  custom: {
    50: '#8c865c',
    500: '#5b581c',
    950: '#000000',
  },
}
SCSS
$custom: #5b581c;
$custom-light: #8c865c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b581c",
  "rgb": {
    "r": 91,
    "g": 88,
    "b": 28
  },
  "hsl": {
    "h": 57.143,
    "s": 52.941,
    "l": 23.333
  },
  "oklch": {
    "l": 0.45039,
    "c": 0.08014,
    "h": 106.5
  },
  "luminance": 0.09287
}

Semantic roles & 50–950 ramp

primary
#5B581C
secondary
#424690
accent
#52DC4B
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B04
muted
#7D7C79

Preview Lab

Preview with #5B581C

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

Preview Lab → · Contrast checker → · Palette generator →

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