#5A5812#5A5812

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

Color values

HEX#5A5812
RGBrgb(90, 88, 18)
HSLhsl(58, 67%, 21%)
HSVhsv(58, 80%, 35%)
CMYKcmyk(0%, 2.2%, 80%, 64.7%)
CIE-LABlab(36.36, -8.27, 38.08)
CIE-LCHlch(36.36, 38.97, 102.25°)
OKLaboklab(44.86% -0.0268 0.0836)
OKLCHoklch(44.86% 0.088 107.8)
XYZxyz(7.8157, 9.1970, 1.9357)
Luminance0.0920 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5812 #12145A
analogous
#5A3412 #5A5812 #385A12
triadic
#5A5812 #125A58 #58125A
tetradic
#5A5812 #125A34 #12145A #5A1238
square
#5A5812 #125A34 #12145A #5A1238
split-complementary
#5A5812 #12385A #34125A
monochromatic
#1A1905 #272608 #5A5812 #8D8A1C #C0BC26

Accessibility & contrast

On white

7.40
#5A5812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A5812
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5812#FFFFFF#000000##FFFFFF
##5A58121.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a5812;
/* rgb */ color: rgb(90, 88, 18);
/* oklch */ color: oklch(44.9% 0.088 107.8);
Tailwind
colors: {
  custom: {
    50: '#8b8656',
    500: '#5a5812',
    950: '#000000',
  },
}
SCSS
$custom: #5a5812;
$custom-light: #8b8656;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5812",
  "rgb": {
    "r": 90,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 58.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.44855,
    "c": 0.08784,
    "h": 107.8
  },
  "luminance": 0.09197
}

Semantic roles & 50–950 ramp

primary
#5A5812
secondary
#353893
accent
#43EA3E
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5A5812

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

Preview Lab → · Contrast checker → · Palette generator →

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