#5A5412#5A5412

#5A5412 is a dark, moderate yellow. Relative luminance 0.086; OKLCH L 43.9% C 0.084 H 104.0°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5A5412
RGBrgb(90, 84, 18)
HSLhsl(55, 67%, 21%)
HSVhsv(55, 80%, 35%)
CMYKcmyk(0%, 6.7%, 80%, 64.7%)
CIE-LABlab(35.12, -5.92, 36.91)
CIE-LCHlch(35.12, 37.39, 99.11°)
OKLaboklab(43.87% -0.0202 0.0812)
OKLCHoklch(43.87% 0.084 104)
XYZxyz(7.4963, 8.5583, 1.8292)
Luminance0.0856 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5412 #12185A
analogous
#5A3012 #5A5412 #3C5A12
triadic
#5A5412 #125A54 #54125A
tetradic
#5A5412 #125A30 #12185A #5A123C
square
#5A5412 #125A30 #12185A #5A123C
split-complementary
#5A5412 #123C5A #30125A
monochromatic
#1A1805 #272408 #5A5412 #8D841C #C0B326

Accessibility & contrast

On white

7.74
#5A5412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5A5412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5412
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5412#FFFFFF#000000##FFFFFF
##5A54121.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5106
Deuteranopia (green-blind)
#5E5417
Tritanopia (blue-blind)
#614E47
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a5412;
/* rgb */ color: rgb(90, 84, 18);
/* oklch */ color: oklch(43.9% 0.084 104.0);
Tailwind
colors: {
  custom: {
    50: '#8b8356',
    500: '#5a5412',
    950: '#000000',
  },
}
SCSS
$custom: #5a5412;
$custom-light: #8b8356;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5412",
  "rgb": {
    "r": 90,
    "g": 84,
    "b": 18
  },
  "hsl": {
    "h": 55,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.43866,
    "c": 0.08365,
    "h": 104
  },
  "luminance": 0.08558
}

Semantic roles & 50–950 ramp

primary
#5A5412
secondary
#353D93
accent
#4CEA3E
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A5412

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

Preview Lab → · Contrast checker → · Palette generator →

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