#5A520F#5A520F

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

Color values

HEX#5A520F
RGBrgb(90, 82, 15)
HSLhsl(54, 71%, 21%)
HSVhsv(54, 83%, 35%)
CMYKcmyk(0%, 8.9%, 83.3%, 64.7%)
CIE-LABlab(34.48, -4.87, 37.48)
CIE-LCHlch(34.48, 37.79, 97.41°)
OKLaboklab(43.36% -0.0176 0.0817)
OKLCHoklch(43.36% 0.084 102.2)
XYZxyz(7.3203, 8.2431, 1.6573)
Luminance0.0824 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A520F #0F175A
analogous
#5A2C0F #5A520F #3C5A0F
triadic
#5A520F #0F5A52 #520F5A
tetradic
#5A520F #0F5A2C #0F175A #5A0F3C
square
#5A520F #0F5A2C #0F175A #5A0F3C
split-complementary
#5A520F #0F3C5A #2C0F5A
monochromatic
#1A1804 #262206 #5A520F #8E8218 #C3B220

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A520F#FFFFFF#000000##FFFFFF
##5A520F1.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)
#5A4F02
Deuteranopia (green-blind)
#5D5314
Tritanopia (blue-blind)
#624B45
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a520f;
/* rgb */ color: rgb(90, 82, 15);
/* oklch */ color: oklch(43.4% 0.084 102.2);
Tailwind
colors: {
  custom: {
    50: '#8c8254',
    500: '#5a520f',
    950: '#000000',
  },
}
SCSS
$custom: #5a520f;
$custom-light: #8c8254;
$custom-dark: #000000;
JSON
{
  "hex": "#5a520f",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 15
  },
  "hsl": {
    "h": 53.6,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.43355,
    "c": 0.08359,
    "h": 102.2
  },
  "luminance": 0.08243
}

Semantic roles & 50–950 ramp

primary
#5A520F
secondary
#313C94
accent
#4DEE3A
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A520F

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

Preview Lab → · Contrast checker → · Palette generator →

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