#5F511E#5F511E

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

Color values

HEX#5F511E
RGBrgb(95, 81, 30)
HSLhsl(47, 52%, 25%)
HSVhsv(47, 68%, 37%)
CMYKcmyk(0%, 14.7%, 68.4%, 62.7%)
CIE-LABlab(34.83, -0.91, 31.28)
CIE-LCHlch(34.83, 31.29, 91.66°)
OKLaboklab(43.79% -0.0048 0.0714)
OKLCHoklch(43.79% 0.072 93.8)
XYZxyz(7.8965, 8.4119, 2.4358)
Luminance0.0841 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F511E #1E2C5F
analogous
#5F311E #5F511E #4D5F1E
triadic
#5F511E #1E5F51 #511E5F
tetradic
#5F511E #1E5F31 #1E2C5F #5F1E4D
square
#5F511E #1E5F31 #1E2C5F #5F1E4D
split-complementary
#5F511E #1E4D5F #311E5F
monochromatic
#171407 #30290F #5F511E #8E792D #BCA03B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F511E#FFFFFF#000000##FFFFFF
##5F511E1.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)
#5A4F18
Deuteranopia (green-blind)
#5D5420
Tritanopia (blue-blind)
#674B46
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f511e;
/* rgb */ color: rgb(95, 81, 30);
/* oklch */ color: oklch(43.8% 0.072 93.8);
Tailwind
colors: {
  custom: {
    50: '#8f815c',
    500: '#5f511e',
    950: '#000000',
  },
}
SCSS
$custom: #5f511e;
$custom-light: #8f815c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f511e",
  "rgb": {
    "r": 95,
    "g": 81,
    "b": 30
  },
  "hsl": {
    "h": 47.077,
    "s": 52,
    "l": 24.51
  },
  "oklch": {
    "l": 0.43789,
    "c": 0.07155,
    "h": 93.8
  },
  "luminance": 0.08411
}

Semantic roles & 50–950 ramp

primary
#5F511E
secondary
#455694
accent
#6BDB4C
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A04
muted
#7E7C79

Preview Lab

Preview with #5F511E

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

Preview Lab → · Contrast checker → · Palette generator →

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