#5A571C#5A571C

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

Color values

HEX#5A571C
RGBrgb(90, 87, 28)
HSLhsl(57, 53%, 23%)
HSVhsv(57, 69%, 35%)
CMYKcmyk(0%, 3.3%, 68.9%, 64.7%)
CIE-LABlab(36.13, -7.08, 33.51)
CIE-LCHlch(36.13, 34.25, 101.94°)
OKLaboklab(44.69% -0.0223 0.0759)
OKLCHoklch(44.69% 0.079 106.4)
XYZxyz(7.8345, 9.0742, 2.4372)
Luminance0.0907 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A571C #1C1F5A
analogous
#5A381C #5A571C #3E5A1C
triadic
#5A571C #1C5A57 #571C5A
tetradic
#5A571C #1C5A38 #1C1F5A #5A1C3E
square
#5A571C #1C5A38 #1C1F5A #5A1C3E
split-complementary
#5A571C #1C3E5A #381C5A
monochromatic
#171707 #2B2A0D #5A571C #89842B #B7B139

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A571C#FFFFFF#000000##FFFFFF
##5A571C1.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)
#5F5414
Deuteranopia (green-blind)
#605620
Tritanopia (blue-blind)
#61514B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a571c;
/* rgb */ color: rgb(90, 87, 28);
/* oklch */ color: oklch(44.7% 0.079 106.4);
Tailwind
colors: {
  custom: {
    50: '#8b865c',
    500: '#5a571c',
    950: '#000000',
  },
}
SCSS
$custom: #5a571c;
$custom-light: #8b865c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a571c",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 28
  },
  "hsl": {
    "h": 57.097,
    "s": 52.542,
    "l": 23.137
  },
  "oklch": {
    "l": 0.44693,
    "c": 0.07915,
    "h": 106.4
  },
  "luminance": 0.09074
}

Semantic roles & 50–950 ramp

primary
#5A571C
secondary
#42468F
accent
#53DC4C
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B04
muted
#7D7C79

Preview Lab

Preview with #5A571C

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

Preview Lab → · Contrast checker → · Palette generator →

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