#5A5311#5A5311

#5A5311 is a dark, moderate yellow. Relative luminance 0.084; OKLCH L 43.6% C 0.083 H 103.1°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5A5311
RGBrgb(90, 83, 17)
HSLhsl(54, 68%, 21%)
HSVhsv(54, 81%, 35%)
CMYKcmyk(0%, 7.8%, 81.1%, 64.7%)
CIE-LABlab(34.80, -5.38, 37.01)
CIE-LCHlch(34.80, 37.40, 98.26°)
OKLaboklab(43.61% -0.0188 0.0812)
OKLCHoklch(43.61% 0.083 103.1)
XYZxyz(7.4112, 8.4010, 1.7614)
Luminance0.0840 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5311 #11185A
analogous
#5A2E11 #5A5311 #3C5A11
triadic
#5A5311 #115A53 #53115A
tetradic
#5A5311 #115A2E #11185A #5A113C
square
#5A5311 #115A2E #11185A #5A113C
split-complementary
#5A5311 #113C5A #2E115A
monochromatic
#1A1805 #272407 #5A5311 #8D821B #C1B224

Accessibility & contrast

On white

7.84
#5A5311 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5A5311 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5311
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5311#FFFFFF#000000##FFFFFF
##5A53111.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5004
Deuteranopia (green-blind)
#5E5316
Tritanopia (blue-blind)
#614D46
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a5311;
/* rgb */ color: rgb(90, 83, 17);
/* oklch */ color: oklch(43.6% 0.083 103.1);
Tailwind
colors: {
  custom: {
    50: '#8b8355',
    500: '#5a5311',
    950: '#000000',
  },
}
SCSS
$custom: #5a5311;
$custom-light: #8b8355;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5311",
  "rgb": {
    "r": 90,
    "g": 83,
    "b": 17
  },
  "hsl": {
    "h": 54.247,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.43613,
    "c": 0.08332,
    "h": 103.1
  },
  "luminance": 0.08401
}

Semantic roles & 50–950 ramp

primary
#5A5311
secondary
#343D93
accent
#4DEB3D
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A5311

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

Preview Lab → · Contrast checker → · Palette generator →

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