#5A5612#5A5612

#5A5612 is a dark, moderate yellow. Relative luminance 0.089; OKLCH L 44.4% C 0.086 H 106.0°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#5A5612
RGBrgb(90, 86, 18)
HSLhsl(57, 67%, 21%)
HSVhsv(57, 80%, 35%)
CMYKcmyk(0%, 4.4%, 80%, 64.7%)
CIE-LABlab(35.74, -7.10, 37.50)
CIE-LCHlch(35.74, 38.16, 100.72°)
OKLaboklab(44.36% -0.0236 0.0824)
OKLCHoklch(44.36% 0.086 106)
XYZxyz(7.6537, 8.8732, 1.8817)
Luminance0.0887 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5612 #12165A
analogous
#5A3212 #5A5612 #3A5A12
triadic
#5A5612 #125A56 #56125A
tetradic
#5A5612 #125A32 #12165A #5A123A
square
#5A5612 #125A32 #12165A #5A123A
split-complementary
#5A5612 #123A5A #32125A
monochromatic
#1A1805 #272508 #5A5612 #8D871C #C0B726

Accessibility & contrast

On white

7.57
#5A5612 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5A5612 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5612
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5612#FFFFFF#000000##FFFFFF
##5A56121.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5305
Deuteranopia (green-blind)
#605517
Tritanopia (blue-blind)
#615049
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a5612;
/* rgb */ color: rgb(90, 86, 18);
/* oklch */ color: oklch(44.4% 0.086 106.0);
Tailwind
colors: {
  custom: {
    50: '#8b8556',
    500: '#5a5612',
    950: '#000000',
  },
}
SCSS
$custom: #5a5612;
$custom-light: #8b8556;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5612",
  "rgb": {
    "r": 90,
    "g": 86,
    "b": 18
  },
  "hsl": {
    "h": 56.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.44359,
    "c": 0.0857,
    "h": 106
  },
  "luminance": 0.08873
}

Semantic roles & 50–950 ramp

primary
#5A5612
secondary
#353A93
accent
#48EA3E
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5A5612

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

Preview Lab → · Contrast checker → · Palette generator →

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