#5A5211#5A5211

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

Color values

HEX#5A5211
RGBrgb(90, 82, 17)
HSLhsl(53, 68%, 21%)
HSVhsv(53, 81%, 35%)
CMYKcmyk(0%, 8.9%, 81.1%, 64.7%)
CIE-LABlab(34.50, -4.78, 36.72)
CIE-LCHlch(34.50, 37.03, 97.41°)
OKLaboklab(43.37% -0.0171 0.0805)
OKLCHoklch(43.37% 0.082 102)
XYZxyz(7.3353, 8.2490, 1.7361)
Luminance0.0825 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5211 #11195A
analogous
#5A2D11 #5A5211 #3D5A11
triadic
#5A5211 #115A52 #52115A
tetradic
#5A5211 #115A2D #11195A #5A113D
square
#5A5211 #115A2D #11195A #5A113D
split-complementary
#5A5211 #113D5A #2D115A
monochromatic
#1A1705 #272307 #5A5211 #8D811B #C1B024

Accessibility & contrast

On white

7.93
#5A5211 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A5211
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5211#FFFFFF#000000##FFFFFF
##5A52111.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a5211;
/* rgb */ color: rgb(90, 82, 17);
/* oklch */ color: oklch(43.4% 0.082 102.0);
Tailwind
colors: {
  custom: {
    50: '#8b8255',
    500: '#5a5211',
    950: '#000000',
  },
}
SCSS
$custom: #5a5211;
$custom-light: #8b8255;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5211",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 17
  },
  "hsl": {
    "h": 53.425,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.43368,
    "c": 0.08235,
    "h": 102
  },
  "luminance": 0.08249
}

Semantic roles & 50–950 ramp

primary
#5A5211
secondary
#343E93
accent
#50EB3D
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A5211

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

Preview Lab → · Contrast checker → · Palette generator →

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