#5A5814#5A5814

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

Color values

HEX#5A5814
RGBrgb(90, 88, 20)
HSLhsl(58, 64%, 22%)
HSVhsv(58, 78%, 35%)
CMYKcmyk(0%, 2.2%, 77.8%, 64.7%)
CIE-LABlab(36.37, -8.17, 37.31)
CIE-LCHlch(36.37, 38.19, 102.35°)
OKLaboklab(44.87% -0.0263 0.0824)
OKLCHoklch(44.87% 0.087 107.7)
XYZxyz(7.8327, 9.2039, 2.0256)
Luminance0.0920 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5814 #14165A
analogous
#5A3514 #5A5814 #395A14
triadic
#5A5814 #145A58 #58145A
tetradic
#5A5814 #145A35 #14165A #5A1439
square
#5A5814 #145A35 #14165A #5A1439
split-complementary
#5A5814 #14395A #35145A
monochromatic
#191806 #282709 #5A5814 #8C891F #BEBA2A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A5814#FFFFFF#000000##FFFFFF
##5A58141.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)
#605407
Deuteranopia (green-blind)
#615719
Tritanopia (blue-blind)
#61524B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a5814;
/* rgb */ color: rgb(90, 88, 20);
/* oklch */ color: oklch(44.9% 0.087 107.7);
Tailwind
colors: {
  custom: {
    50: '#8b8657',
    500: '#5a5814',
    950: '#000000',
  },
}
SCSS
$custom: #5a5814;
$custom-light: #8b8657;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5814",
  "rgb": {
    "r": 90,
    "g": 88,
    "b": 20
  },
  "hsl": {
    "h": 58.286,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.4487,
    "c": 0.08652,
    "h": 107.7
  },
  "luminance": 0.09204
}

Semantic roles & 50–950 ramp

primary
#5A5814
secondary
#383B92
accent
#46E741
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5A5814

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

Preview Lab → · Contrast checker → · Palette generator →

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