#5A5813#5A5813

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

Color values

HEX#5A5813
RGBrgb(90, 88, 19)
HSLhsl(58, 65%, 21%)
HSVhsv(58, 79%, 35%)
CMYKcmyk(0%, 2.2%, 78.9%, 64.7%)
CIE-LABlab(36.37, -8.22, 37.70)
CIE-LCHlch(36.37, 38.58, 102.30°)
OKLaboklab(44.86% -0.0266 0.083)
OKLCHoklch(44.86% 0.087 107.8)
XYZxyz(7.8240, 9.2004, 1.9797)
Luminance0.0920 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5813 #13155A
analogous
#5A3513 #5A5813 #395A13
triadic
#5A5813 #135A58 #58135A
tetradic
#5A5813 #135A35 #13155A #5A1339
square
#5A5813 #135A35 #13155A #5A1339
split-complementary
#5A5813 #13395A #35135A
monochromatic
#191905 #272708 #5A5813 #8D891E #BFBB28

Accessibility & contrast

On white

7.39
#5A5813 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5A5813 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5813
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5813#FFFFFF#000000##FFFFFF
##5A58131.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605406
Deuteranopia (green-blind)
#615718
Tritanopia (blue-blind)
#61524B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a5813;
/* rgb */ color: rgb(90, 88, 19);
/* oklch */ color: oklch(44.9% 0.087 107.8);
Tailwind
colors: {
  custom: {
    50: '#8b8657',
    500: '#5a5813',
    950: '#000000',
  },
}
SCSS
$custom: #5a5813;
$custom-light: #8b8657;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5813",
  "rgb": {
    "r": 90,
    "g": 88,
    "b": 19
  },
  "hsl": {
    "h": 58.31,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.44862,
    "c": 0.08719,
    "h": 107.8
  },
  "luminance": 0.092
}

Semantic roles & 50–950 ramp

primary
#5A5813
secondary
#373992
accent
#44E840
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5A5813

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

Preview Lab → · Contrast checker → · Palette generator →

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