#5A5010#5A5010

#5A5010 is a dark, moderate yellow. Relative luminance 0.079; OKLCH L 42.9% C 0.081 H 99.9°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#5A5010
RGBrgb(90, 80, 16)
HSLhsl(52, 70%, 21%)
HSVhsv(52, 82%, 35%)
CMYKcmyk(0%, 11.1%, 82.2%, 64.7%)
CIE-LABlab(33.88, -3.63, 36.54)
CIE-LCHlch(33.88, 36.72, 95.67°)
OKLaboklab(42.87% -0.014 0.0799)
OKLCHoklch(42.87% 0.081 99.9)
XYZxyz(7.1790, 7.9487, 1.6462)
Luminance0.0795 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5010 #101A5A
analogous
#5A2B10 #5A5010 #3F5A10
triadic
#5A5010 #105A50 #50105A
tetradic
#5A5010 #105A2B #101A5A #5A103F
square
#5A5010 #105A2B #101A5A #5A103F
split-complementary
#5A5010 #103F5A #2B105A
monochromatic
#1A1705 #262207 #5A5010 #8E7E19 #C2AC22

Accessibility & contrast

On white

8.11
#5A5010 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A5010
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5010#FFFFFF#000000##FFFFFF
##5A50101.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E04
Deuteranopia (green-blind)
#5B5115
Tritanopia (blue-blind)
#624944
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a5010;
/* rgb */ color: rgb(90, 80, 16);
/* oklch */ color: oklch(42.9% 0.081 99.9);
Tailwind
colors: {
  custom: {
    50: '#8c8054',
    500: '#5a5010',
    950: '#000000',
  },
}
SCSS
$custom: #5a5010;
$custom-light: #8c8054;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5010",
  "rgb": {
    "r": 90,
    "g": 80,
    "b": 16
  },
  "hsl": {
    "h": 51.892,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42874,
    "c": 0.08115,
    "h": 99.9
  },
  "luminance": 0.07948
}

Semantic roles & 50–950 ramp

primary
#5A5010
secondary
#334093
accent
#53ED3B
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A5010

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

Preview Lab → · Contrast checker → · Palette generator →

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