#5A5215#5A5215

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

Color values

HEX#5A5215
RGBrgb(90, 82, 21)
HSLhsl(53, 62%, 22%)
HSVhsv(53, 77%, 35%)
CMYKcmyk(0%, 8.9%, 76.7%, 64.7%)
CIE-LABlab(34.52, -4.57, 35.09)
CIE-LCHlch(34.52, 35.39, 97.42°)
OKLaboklab(43.4% -0.0161 0.0779)
OKLCHoklch(43.4% 0.08 101.7)
XYZxyz(7.3694, 8.2627, 1.9160)
Luminance0.0826 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5215 #151D5A
analogous
#5A3015 #5A5215 #405A15
triadic
#5A5215 #155A52 #52155A
tetradic
#5A5215 #155A30 #151D5A #5A1540
square
#5A5215 #155A30 #151D5A #5A1540
split-complementary
#5A5215 #15405A #30155A
monochromatic
#191706 #282509 #5A5215 #8C7F21 #BDAC2C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A5215#FFFFFF#000000##FFFFFF
##5A52151.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)
#5A4F0B
Deuteranopia (green-blind)
#5D5319
Tritanopia (blue-blind)
#614C46
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a5215;
/* rgb */ color: rgb(90, 82, 21);
/* oklch */ color: oklch(43.4% 0.080 101.7);
Tailwind
colors: {
  custom: {
    50: '#8b8257',
    500: '#5a5215',
    950: '#000000',
  },
}
SCSS
$custom: #5a5215;
$custom-light: #8b8257;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5215",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 21
  },
  "hsl": {
    "h": 53.043,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.43399,
    "c": 0.07957,
    "h": 101.7
  },
  "luminance": 0.08262
}

Semantic roles & 50–950 ramp

primary
#5A5215
secondary
#394492
accent
#55E543
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A5215

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

Preview Lab → · Contrast checker → · Palette generator →

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