#5F511C#5F511C

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

Color values

HEX#5F511C
RGBrgb(95, 81, 28)
HSLhsl(47, 54%, 24%)
HSVhsv(47, 71%, 37%)
CMYKcmyk(0%, 14.7%, 70.5%, 62.7%)
CIE-LABlab(34.81, -1.05, 32.27)
CIE-LCHlch(34.81, 32.28, 91.86°)
OKLaboklab(43.77% -0.0055 0.0731)
OKLCHoklch(43.77% 0.073 94.3)
XYZxyz(7.8717, 8.4020, 2.3055)
Luminance0.0840 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F511C #1C2A5F
analogous
#5F301C #5F511C #4C5F1C
triadic
#5F511C #1C5F51 #511C5F
tetradic
#5F511C #1C5F30 #1C2A5F #5F1C4C
square
#5F511C #1C5F30 #1C2A5F #5F1C4C
split-complementary
#5F511C #1C4C5F #301C5F
monochromatic
#181407 #30290E #5F511C #8E792A #BEA238

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F511C#FFFFFF#000000##FFFFFF
##5F511C1.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)
#5A4F16
Deuteranopia (green-blind)
#5D541F
Tritanopia (blue-blind)
#674A46
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f511c;
/* rgb */ color: rgb(95, 81, 28);
/* oklch */ color: oklch(43.8% 0.073 94.3);
Tailwind
colors: {
  custom: {
    50: '#8f815b',
    500: '#5f511c',
    950: '#000000',
  },
}
SCSS
$custom: #5f511c;
$custom-light: #8f815b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f511c",
  "rgb": {
    "r": 95,
    "g": 81,
    "b": 28
  },
  "hsl": {
    "h": 47.463,
    "s": 54.472,
    "l": 24.118
  },
  "oklch": {
    "l": 0.43767,
    "c": 0.07335,
    "h": 94.3
  },
  "luminance": 0.08402
}

Semantic roles & 50–950 ramp

primary
#5F511C
secondary
#425494
accent
#69DE4A
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A04
muted
#7E7C79

Preview Lab

Preview with #5F511C

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

Preview Lab → · Contrast checker → · Palette generator →

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