#5A5515#5A5515

#5A5515 is a dark, moderate yellow. Relative luminance 0.087; OKLCH L 44.1% C 0.083 H 104.8°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5A5515
RGBrgb(90, 85, 21)
HSLhsl(56, 62%, 22%)
HSVhsv(56, 77%, 35%)
CMYKcmyk(0%, 5.6%, 76.7%, 64.7%)
CIE-LABlab(35.45, -6.35, 36.00)
CIE-LCHlch(35.45, 36.55, 100.01°)
OKLaboklab(44.14% -0.0211 0.0799)
OKLCHoklch(44.14% 0.083 104.8)
XYZxyz(7.6006, 8.7251, 1.9931)
Luminance0.0872 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5515 #151A5A
analogous
#5A3315 #5A5515 #3D5A15
triadic
#5A5515 #155A55 #55155A
tetradic
#5A5515 #155A33 #151A5A #5A153D
square
#5A5515 #155A33 #151A5A #5A153D
split-complementary
#5A5515 #153D5A #33155A
monochromatic
#191706 #282609 #5A5515 #8C8421 #BDB32C

Accessibility & contrast

On white

7.65
#5A5515 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5A5515 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5515
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5515#FFFFFF#000000##FFFFFF
##5A55151.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D520A
Deuteranopia (green-blind)
#5F5519
Tritanopia (blue-blind)
#614F48
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a5515;
/* rgb */ color: rgb(90, 85, 21);
/* oklch */ color: oklch(44.1% 0.083 104.8);
Tailwind
colors: {
  custom: {
    50: '#8b8457',
    500: '#5a5515',
    950: '#000000',
  },
}
SCSS
$custom: #5a5515;
$custom-light: #8b8457;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5515",
  "rgb": {
    "r": 90,
    "g": 85,
    "b": 21
  },
  "hsl": {
    "h": 55.652,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.44135,
    "c": 0.0826,
    "h": 104.8
  },
  "luminance": 0.08725
}

Semantic roles & 50–950 ramp

primary
#5A5515
secondary
#394092
accent
#4EE543
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A5515

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

Preview Lab → · Contrast checker → · Palette generator →

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