#5A571B#5A571B

#5A571B is a dark, moderate yellow. Relative luminance 0.091; OKLCH L 44.7% C 0.080 H 106.5°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5A571B
RGBrgb(90, 87, 27)
HSLhsl(57, 54%, 23%)
HSVhsv(57, 70%, 35%)
CMYKcmyk(0%, 3.3%, 70%, 64.7%)
CIE-LABlab(36.12, -7.15, 33.98)
CIE-LCHlch(36.12, 34.72, 101.89°)
OKLaboklab(44.68% -0.0227 0.0767)
OKLCHoklch(44.68% 0.08 106.5)
XYZxyz(7.8228, 9.0694, 2.3752)
Luminance0.0907 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A571B #1B1E5A
analogous
#5A371B #5A571B #3D5A1B
triadic
#5A571B #1B5A57 #571B5A
tetradic
#5A571B #1B5A37 #1B1E5A #5A1B3D
square
#5A571B #1B5A37 #1B1E5A #5A1B3D
split-complementary
#5A571B #1B3D5A #371B5A
monochromatic
#181707 #2B290D #5A571B #898529 #B8B237

Accessibility & contrast

On white

7.46
#5A571B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5A571B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A571B
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A571B#FFFFFF#000000##FFFFFF
##5A571B1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5413
Deuteranopia (green-blind)
#60561F
Tritanopia (blue-blind)
#61514B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a571b;
/* rgb */ color: rgb(90, 87, 27);
/* oklch */ color: oklch(44.7% 0.080 106.5);
Tailwind
colors: {
  custom: {
    50: '#8b865b',
    500: '#5a571b',
    950: '#000000',
  },
}
SCSS
$custom: #5a571b;
$custom-light: #8b865b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a571b",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 27
  },
  "hsl": {
    "h": 57.143,
    "s": 53.846,
    "l": 22.941
  },
  "oklch": {
    "l": 0.44683,
    "c": 0.08002,
    "h": 106.5
  },
  "luminance": 0.09069
}

Semantic roles & 50–950 ramp

primary
#5A571B
secondary
#414590
accent
#52DD4B
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B04
muted
#7D7C79

Preview Lab

Preview with #5A571B

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

Preview Lab → · Contrast checker → · Palette generator →

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