#5A5015#5A5015

#5A5015 is a dark, moderate yellow. Relative luminance 0.080; OKLCH L 42.9% C 0.078 H 99.4°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#5A5015
RGBrgb(90, 80, 21)
HSLhsl(51, 62%, 22%)
HSVhsv(51, 77%, 35%)
CMYKcmyk(0%, 11.1%, 76.7%, 64.7%)
CIE-LABlab(33.91, -3.37, 34.48)
CIE-LCHlch(33.91, 34.65, 95.58°)
OKLaboklab(42.91% -0.0127 0.0767)
OKLCHoklch(42.91% 0.078 99.4)
XYZxyz(7.2208, 7.9655, 1.8665)
Luminance0.0796 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5015 #151F5A
analogous
#5A2E15 #5A5015 #425A15
triadic
#5A5015 #155A50 #50155A
tetradic
#5A5015 #155A2E #151F5A #5A1542
square
#5A5015 #155A2E #151F5A #5A1542
split-complementary
#5A5015 #15425A #2E155A
monochromatic
#191606 #282409 #5A5015 #8C7C21 #BDA82C

Accessibility & contrast

On white

8.10
#5A5015 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5A5015 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5015
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5015#FFFFFF#000000##FFFFFF
##5A50151.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E0C
Deuteranopia (green-blind)
#5B5119
Tritanopia (blue-blind)
#624A44
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a5015;
/* rgb */ color: rgb(90, 80, 21);
/* oklch */ color: oklch(42.9% 0.078 99.4);
Tailwind
colors: {
  custom: {
    50: '#8b8057',
    500: '#5a5015',
    950: '#000000',
  },
}
SCSS
$custom: #5a5015;
$custom-light: #8b8057;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5015",
  "rgb": {
    "r": 90,
    "g": 80,
    "b": 21
  },
  "hsl": {
    "h": 51.304,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42913,
    "c": 0.07769,
    "h": 99.4
  },
  "luminance": 0.07965
}

Semantic roles & 50–950 ramp

primary
#5A5015
secondary
#394692
accent
#5AE543
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A5015

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

Preview Lab → · Contrast checker → · Palette generator →

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