#5A581A#5A581A

#5A581A is a dark, moderate yellow. Relative luminance 0.092; OKLCH L 44.9% C 0.082 H 107.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5A581A
RGBrgb(90, 88, 26)
HSLhsl(58, 55%, 23%)
HSVhsv(58, 71%, 35%)
CMYKcmyk(0%, 2.2%, 71.1%, 64.7%)
CIE-LABlab(36.42, -7.81, 34.75)
CIE-LCHlch(36.42, 35.62, 102.66°)
OKLaboklab(44.92% -0.0246 0.0782)
OKLCHoklch(44.92% 0.082 107.5)
XYZxyz(7.8929, 9.2279, 2.3425)
Luminance0.0923 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A581A #1A1C5A
analogous
#5A381A #5A581A #3C5A1A
triadic
#5A581A #1A5A58 #581A5A
tetradic
#5A581A #1A5A38 #1A1C5A #5A1A3C
square
#5A581A #1A5A38 #1A1C5A #5A1A3C
split-complementary
#5A581A #1A3C5A #381A5A
monochromatic
#181707 #2B2A0C #5A581A #898628 #B9B535

Accessibility & contrast

On white

7.38
#5A581A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5A581A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A581A
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A581A#FFFFFF#000000##FFFFFF
##5A581A1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a581a;
/* rgb */ color: rgb(90, 88, 26);
/* oklch */ color: oklch(44.9% 0.082 107.5);
Tailwind
colors: {
  custom: {
    50: '#8b865a',
    500: '#5a581a',
    950: '#000000',
  },
}
SCSS
$custom: #5a581a;
$custom-light: #8b865a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a581a",
  "rgb": {
    "r": 90,
    "g": 88,
    "b": 26
  },
  "hsl": {
    "h": 58.125,
    "s": 55.172,
    "l": 22.745
  },
  "oklch": {
    "l": 0.44921,
    "c": 0.08199,
    "h": 107.5
  },
  "luminance": 0.09228
}

Semantic roles & 50–950 ramp

primary
#5A581A
secondary
#404290
accent
#4EDF49
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B04
muted
#7D7C79

Preview Lab

Preview with #5A581A

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

Preview Lab → · Contrast checker → · Palette generator →

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