#5A5212#5A5212

#5A5212 is a dark, moderate yellow. Relative luminance 0.083; OKLCH L 43.4% C 0.082 H 101.9°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#5A5212
RGBrgb(90, 82, 18)
HSLhsl(53, 67%, 21%)
HSVhsv(53, 80%, 35%)
CMYKcmyk(0%, 8.9%, 80%, 64.7%)
CIE-LABlab(34.50, -4.73, 36.33)
CIE-LCHlch(34.50, 36.64, 97.42°)
OKLaboklab(43.38% -0.0169 0.0799)
OKLCHoklch(43.38% 0.082 101.9)
XYZxyz(7.3433, 8.2522, 1.7782)
Luminance0.0825 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5212 #121A5A
analogous
#5A2E12 #5A5212 #3E5A12
triadic
#5A5212 #125A52 #52125A
tetradic
#5A5212 #125A2E #121A5A #5A123E
square
#5A5212 #125A2E #121A5A #5A123E
split-complementary
#5A5212 #123E5A #2E125A
monochromatic
#1A1705 #272408 #5A5212 #8D801C #C0AF26

Accessibility & contrast

On white

7.92
#5A5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5A5212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5212
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5212#FFFFFF#000000##FFFFFF
##5A52121.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F06
Deuteranopia (green-blind)
#5D5316
Tritanopia (blue-blind)
#614C46
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a5212;
/* rgb */ color: rgb(90, 82, 18);
/* oklch */ color: oklch(43.4% 0.082 101.9);
Tailwind
colors: {
  custom: {
    50: '#8b8255',
    500: '#5a5212',
    950: '#000000',
  },
}
SCSS
$custom: #5a5212;
$custom-light: #8b8255;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5212",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 53.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.43376,
    "c": 0.0817,
    "h": 101.9
  },
  "luminance": 0.08252
}

Semantic roles & 50–950 ramp

primary
#5A5212
secondary
#354093
accent
#51EA3E
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A5212

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

Preview Lab → · Contrast checker → · Palette generator →

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