#5F511F#5F511F

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

Color values

HEX#5F511F
RGBrgb(95, 81, 31)
HSLhsl(47, 51%, 25%)
HSVhsv(47, 67%, 37%)
CMYKcmyk(0%, 14.7%, 67.4%, 62.7%)
CIE-LABlab(34.84, -0.83, 30.77)
CIE-LCHlch(34.84, 30.79, 91.55°)
OKLaboklab(43.8% -0.0044 0.0705)
OKLCHoklch(43.8% 0.071 93.6)
XYZxyz(7.9094, 8.4171, 2.5041)
Luminance0.0842 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F511F #1F2D5F
analogous
#5F311F #5F511F #4D5F1F
triadic
#5F511F #1F5F51 #511F5F
tetradic
#5F511F #1F5F31 #1F2D5F #5F1F4D
square
#5F511F #1F5F31 #1F2D5F #5F1F4D
split-complementary
#5F511F #1F4D5F #311F5F
monochromatic
#171408 #312A10 #5F511F #8D782E #BBA03D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F511F#FFFFFF#000000##FFFFFF
##5F511F1.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)
#5A4F19
Deuteranopia (green-blind)
#5D5421
Tritanopia (blue-blind)
#674B46
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f511f;
/* rgb */ color: rgb(95, 81, 31);
/* oklch */ color: oklch(43.8% 0.071 93.6);
Tailwind
colors: {
  custom: {
    50: '#8f815d',
    500: '#5f511f',
    950: '#000000',
  },
}
SCSS
$custom: #5f511f;
$custom-light: #8f815d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f511f",
  "rgb": {
    "r": 95,
    "g": 81,
    "b": 31
  },
  "hsl": {
    "h": 46.875,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.438,
    "c": 0.07062,
    "h": 93.6
  },
  "luminance": 0.08417
}

Semantic roles & 50–950 ramp

primary
#5F511F
secondary
#465794
accent
#6CDA4E
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A04
muted
#7E7C79

Preview Lab

Preview with #5F511F

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

Preview Lab → · Contrast checker → · Palette generator →

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