#5A5213#5A5213

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

Color values

HEX#5A5213
RGBrgb(90, 82, 19)
HSLhsl(53, 65%, 21%)
HSVhsv(53, 79%, 35%)
CMYKcmyk(0%, 8.9%, 78.9%, 64.7%)
CIE-LABlab(34.51, -4.68, 35.93)
CIE-LCHlch(34.51, 36.23, 97.42°)
OKLaboklab(43.38% -0.0166 0.0793)
OKLCHoklch(43.38% 0.081 101.9)
XYZxyz(7.3516, 8.2556, 1.8222)
Luminance0.0825 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5213 #131B5A
analogous
#5A2F13 #5A5213 #3F5A13
triadic
#5A5213 #135A52 #52135A
tetradic
#5A5213 #135A2F #131B5A #5A133F
square
#5A5213 #135A2F #131B5A #5A133F
split-complementary
#5A5213 #133F5A #2F135A
monochromatic
#191705 #272408 #5A5213 #8D801E #BFAE28

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A5213#FFFFFF#000000##FFFFFF
##5A52131.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)
#5A4F08
Deuteranopia (green-blind)
#5D5317
Tritanopia (blue-blind)
#614C46
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a5213;
/* rgb */ color: rgb(90, 82, 19);
/* oklch */ color: oklch(43.4% 0.081 101.9);
Tailwind
colors: {
  custom: {
    50: '#8b8256',
    500: '#5a5213',
    950: '#000000',
  },
}
SCSS
$custom: #5a5213;
$custom-light: #8b8256;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5213",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 19
  },
  "hsl": {
    "h": 53.239,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.43383,
    "c": 0.08102,
    "h": 101.9
  },
  "luminance": 0.08255
}

Semantic roles & 50–950 ramp

primary
#5A5213
secondary
#374192
accent
#53E840
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A5213

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

Preview Lab → · Contrast checker → · Palette generator →

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