#5F511D#5F511D

#5F511D is a dark, moderate yellow. Relative luminance 0.084; OKLCH L 43.8% C 0.072 H 94.1°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#5F511D
RGBrgb(95, 81, 29)
HSLhsl(47, 53%, 24%)
HSVhsv(47, 69%, 37%)
CMYKcmyk(0%, 14.7%, 69.5%, 62.7%)
CIE-LABlab(34.82, -0.98, 31.78)
CIE-LCHlch(34.82, 31.79, 91.76°)
OKLaboklab(43.78% -0.0051 0.0723)
OKLCHoklch(43.78% 0.072 94.1)
XYZxyz(7.8839, 8.4069, 2.3696)
Luminance0.0841 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F511D #1D2B5F
analogous
#5F301D #5F511D #4C5F1D
triadic
#5F511D #1D5F51 #511D5F
tetradic
#5F511D #1D5F30 #1D2B5F #5F1D4C
square
#5F511D #1D5F30 #1D2B5F #5F1D4C
split-complementary
#5F511D #1D4C5F #301D5F
monochromatic
#171407 #30290F #5F511D #8E792B #BDA13A

Accessibility & contrast

On white

7.83
#5F511D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F511D
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F511D#FFFFFF#000000##FFFFFF
##5F511D1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F17
Deuteranopia (green-blind)
#5D5420
Tritanopia (blue-blind)
#674B46
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f511d;
/* rgb */ color: rgb(95, 81, 29);
/* oklch */ color: oklch(43.8% 0.072 94.1);
Tailwind
colors: {
  custom: {
    50: '#8f815c',
    500: '#5f511d',
    950: '#000000',
  },
}
SCSS
$custom: #5f511d;
$custom-light: #8f815c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f511d",
  "rgb": {
    "r": 95,
    "g": 81,
    "b": 29
  },
  "hsl": {
    "h": 47.273,
    "s": 53.226,
    "l": 24.314
  },
  "oklch": {
    "l": 0.43777,
    "c": 0.07245,
    "h": 94.1
  },
  "luminance": 0.08406
}

Semantic roles & 50–950 ramp

primary
#5F511D
secondary
#445594
accent
#6ADD4B
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A04
muted
#7E7C79

Preview Lab

Preview with #5F511D

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

Preview Lab → · Contrast checker → · Palette generator →

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