#5A571F#5A571F

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

Color values

HEX#5A571F
RGBrgb(90, 87, 31)
HSLhsl(57, 49%, 24%)
HSVhsv(57, 66%, 35%)
CMYKcmyk(0%, 3.3%, 65.6%, 64.7%)
CIE-LABlab(36.16, -6.86, 32.07)
CIE-LCHlch(36.16, 32.79, 102.07°)
OKLaboklab(44.73% -0.0213 0.0734)
OKLCHoklch(44.73% 0.076 106.2)
XYZxyz(7.8722, 9.0892, 2.6358)
Luminance0.0909 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A571F #1F225A
analogous
#5A391F #5A571F #3F5A1F
triadic
#5A571F #1F5A57 #571F5A
tetradic
#5A571F #1F5A39 #1F225A #5A1F3F
square
#5A571F #1F5A39 #1F225A #5A1F3F
split-complementary
#5A571F #1F3F5A #391F5A
monochromatic
#171608 #2C2B0F #5A571F #88832F #B5AF3E

Accessibility & contrast

On white

7.45
#5A571F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5A571F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A571F
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A571F#FFFFFF#000000##FFFFFF
##5A571F1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5419
Deuteranopia (green-blind)
#605622
Tritanopia (blue-blind)
#61514B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a571f;
/* rgb */ color: rgb(90, 87, 31);
/* oklch */ color: oklch(44.7% 0.076 106.2);
Tailwind
colors: {
  custom: {
    50: '#8b865d',
    500: '#5a571f',
    950: '#000000',
  },
}
SCSS
$custom: #5a571f;
$custom-light: #8b865d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a571f",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 31
  },
  "hsl": {
    "h": 56.949,
    "s": 48.76,
    "l": 23.725
  },
  "oklch": {
    "l": 0.44725,
    "c": 0.07642,
    "h": 106.2
  },
  "luminance": 0.09089
}

Semantic roles & 50–950 ramp

primary
#5A571F
secondary
#464A8F
accent
#56D84F
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B04
muted
#7D7C79

Preview Lab

Preview with #5A571F

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

Preview Lab → · Contrast checker → · Palette generator →

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