#5A5712#5A5712

#5A5712 is a dark, moderate yellow. Relative luminance 0.090; OKLCH L 44.6% C 0.087 H 106.9°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#5A5712
RGBrgb(90, 87, 18)
HSLhsl(58, 67%, 21%)
HSVhsv(58, 80%, 35%)
CMYKcmyk(0%, 3.3%, 80%, 64.7%)
CIE-LABlab(36.05, -7.68, 37.79)
CIE-LCHlch(36.05, 38.56, 101.49°)
OKLaboklab(44.61% -0.0252 0.083)
OKLCHoklch(44.61% 0.087 106.9)
XYZxyz(7.7341, 9.0340, 1.9085)
Luminance0.0903 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5712 #12155A
analogous
#5A3312 #5A5712 #395A12
triadic
#5A5712 #125A57 #57125A
tetradic
#5A5712 #125A33 #12155A #5A1239
square
#5A5712 #125A33 #12155A #5A1239
split-complementary
#5A5712 #12395A #33125A
monochromatic
#1A1905 #272608 #5A5712 #8D881C #C0BA26

Accessibility & contrast

On white

7.48
#5A5712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A5712
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5712#FFFFFF#000000##FFFFFF
##5A57121.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5305
Deuteranopia (green-blind)
#605617
Tritanopia (blue-blind)
#61514A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a5712;
/* rgb */ color: rgb(90, 87, 18);
/* oklch */ color: oklch(44.6% 0.087 106.9);
Tailwind
colors: {
  custom: {
    50: '#8b8656',
    500: '#5a5712',
    950: '#000000',
  },
}
SCSS
$custom: #5a5712;
$custom-light: #8b8656;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5712",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 18
  },
  "hsl": {
    "h": 57.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.44607,
    "c": 0.08676,
    "h": 106.9
  },
  "luminance": 0.09034
}

Semantic roles & 50–950 ramp

primary
#5A5712
secondary
#353993
accent
#45EA3E
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5A5712

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

Preview Lab → · Contrast checker → · Palette generator →

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