#5A511F#5A511F

#5A511F is a dark, moderate yellow. Relative luminance 0.082; OKLCH L 43.3% C 0.070 H 99.2°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#5A511F
RGBrgb(90, 81, 31)
HSLhsl(51, 49%, 24%)
HSVhsv(51, 66%, 35%)
CMYKcmyk(0%, 10%, 65.6%, 64.7%)
CIE-LABlab(34.31, -3.29, 30.04)
CIE-LCHlch(34.31, 30.22, 96.24°)
OKLaboklab(43.26% -0.0111 0.0691)
OKLCHoklch(43.26% 0.07 99.2)
XYZxyz(7.4065, 8.1578, 2.4805)
Luminance0.0816 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A511F #1F285A
analogous
#5A331F #5A511F #455A1F
triadic
#5A511F #1F5A51 #511F5A
tetradic
#5A511F #1F5A33 #1F285A #5A1F45
square
#5A511F #1F5A33 #1F285A #5A1F45
split-complementary
#5A511F #1F455A #331F5A
monochromatic
#171408 #2C280F #5A511F #887A2F #B5A33E

Accessibility & contrast

On white

7.98
#5A511F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5A511F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A511F
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A511F#FFFFFF#000000##FFFFFF
##5A511F1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594F1A
Deuteranopia (green-blind)
#5B5222
Tritanopia (blue-blind)
#614B46
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a511f;
/* rgb */ color: rgb(90, 81, 31);
/* oklch */ color: oklch(43.3% 0.070 99.2);
Tailwind
colors: {
  custom: {
    50: '#8b815d',
    500: '#5a511f',
    950: '#000000',
  },
}
SCSS
$custom: #5a511f;
$custom-light: #8b815d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a511f",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 31
  },
  "hsl": {
    "h": 50.847,
    "s": 48.76,
    "l": 23.725
  },
  "oklch": {
    "l": 0.43258,
    "c": 0.06996,
    "h": 99.2
  },
  "luminance": 0.08157
}

Semantic roles & 50–950 ramp

primary
#5A511F
secondary
#46518F
accent
#64D84F
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A04
muted
#7D7C79

Preview Lab

Preview with #5A511F

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

Preview Lab → · Contrast checker → · Palette generator →

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