#5A501B#5A501B

#5A501B is a dark, moderate yellow. Relative luminance 0.080; OKLCH L 43.0% C 0.073 H 98.6°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#5A501B
RGBrgb(90, 80, 27)
HSLhsl(50, 54%, 23%)
HSVhsv(50, 70%, 35%)
CMYKcmyk(0%, 11.1%, 70%, 64.7%)
CIE-LABlab(33.96, -2.98, 31.71)
CIE-LCHlch(33.96, 31.85, 95.38°)
OKLaboklab(42.97% -0.0108 0.0719)
OKLCHoklch(42.97% 0.073 98.6)
XYZxyz(7.2833, 7.9904, 2.1954)
Luminance0.0799 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A501B #1B255A
analogous
#5A301B #5A501B #445A1B
triadic
#5A501B #1B5A50 #501B5A
tetradic
#5A501B #1B5A30 #1B255A #5A1B44
square
#5A501B #1B5A30 #1B255A #5A1B44
split-complementary
#5A501B #1B445A #301B5A
monochromatic
#181507 #2B260D #5A501B #897A29 #B8A437

Accessibility & contrast

On white

8.08
#5A501B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5A501B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A501B
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A501B#FFFFFF#000000##FFFFFF
##5A501B1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E15
Deuteranopia (green-blind)
#5B511E
Tritanopia (blue-blind)
#614A45
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a501b;
/* rgb */ color: rgb(90, 80, 27);
/* oklch */ color: oklch(43.0% 0.073 98.6);
Tailwind
colors: {
  custom: {
    50: '#8b805a',
    500: '#5a501b',
    950: '#000000',
  },
}
SCSS
$custom: #5a501b;
$custom-light: #8b805a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a501b",
  "rgb": {
    "r": 90,
    "g": 80,
    "b": 27
  },
  "hsl": {
    "h": 50.476,
    "s": 53.846,
    "l": 22.941
  },
  "oklch": {
    "l": 0.42971,
    "c": 0.07275,
    "h": 98.6
  },
  "luminance": 0.0799
}

Semantic roles & 50–950 ramp

primary
#5A501B
secondary
#414E90
accent
#62DD4B
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A04
muted
#7D7C79

Preview Lab

Preview with #5A501B

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

Preview Lab → · Contrast checker → · Palette generator →

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