#5F511A#5F511A

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

Color values

HEX#5F511A
RGBrgb(95, 81, 26)
HSLhsl(48, 57%, 24%)
HSVhsv(48, 73%, 37%)
CMYKcmyk(0%, 14.7%, 72.6%, 62.7%)
CIE-LABlab(34.79, -1.18, 33.23)
CIE-LCHlch(34.79, 33.25, 92.04°)
OKLaboklab(43.75% -0.0061 0.0748)
OKLCHoklch(43.75% 0.075 94.7)
XYZxyz(7.8486, 8.3928, 2.1836)
Luminance0.0839 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F511A #1A285F
analogous
#5F2E1A #5F511A #4A5F1A
triadic
#5F511A #1A5F51 #511A5F
tetradic
#5F511A #1A5F2E #1A285F #5F1A4A
square
#5F511A #1A5F2E #1A285F #5F1A4A
split-complementary
#5F511A #1A4A5F #2E1A5F
monochromatic
#181407 #2F280D #5F511A #8F7A27 #BFA334

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F511A#FFFFFF#000000##FFFFFF
##5F511A1.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)
#5A4F13
Deuteranopia (green-blind)
#5D541D
Tritanopia (blue-blind)
#674A46
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f511a;
/* rgb */ color: rgb(95, 81, 26);
/* oklch */ color: oklch(43.7% 0.075 94.7);
Tailwind
colors: {
  custom: {
    50: '#8f815a',
    500: '#5f511a',
    950: '#000000',
  },
}
SCSS
$custom: #5f511a;
$custom-light: #8f815a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f511a",
  "rgb": {
    "r": 95,
    "g": 81,
    "b": 26
  },
  "hsl": {
    "h": 47.826,
    "s": 57.025,
    "l": 23.725
  },
  "oklch": {
    "l": 0.43746,
    "c": 0.07505,
    "h": 94.7
  },
  "luminance": 0.08392
}

Semantic roles & 50–950 ramp

primary
#5F511A
secondary
#405195
accent
#67E048
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A04
muted
#7E7C79

Preview Lab

Preview with #5F511A

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

Preview Lab → · Contrast checker → · Palette generator →

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