#5B4F12#5B4F12

#5B4F12 is a dark, moderate yellow. Relative luminance 0.079; OKLCH L 42.8% C 0.079 H 97.6°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#5B4F12
RGBrgb(91, 79, 18)
HSLhsl(50, 67%, 21%)
HSVhsv(50, 80%, 36%)
CMYKcmyk(0%, 13.2%, 80.2%, 64.3%)
CIE-LABlab(33.69, -2.43, 35.60)
CIE-LCHlch(33.69, 35.68, 93.90°)
OKLaboklab(42.76% -0.0104 0.0783)
OKLCHoklch(42.76% 0.079 97.6)
XYZxyz(7.2199, 7.8602, 1.7090)
Luminance0.0786 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4F12 #121E5B
analogous
#5B2B12 #5B4F12 #435B12
triadic
#5B4F12 #125B4F #4F125B
tetradic
#5B4F12 #125B2B #121E5B #5B1243
square
#5B4F12 #125B2B #121E5B #5B1243
split-complementary
#5B4F12 #12435B #2B125B
monochromatic
#1A1605 #282308 #5B4F12 #8E7B1C #C1A826

Accessibility & contrast

On white

8.16
#5B4F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5B4F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4F12
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4F12#FFFFFF#000000##FFFFFF
##5B4F121.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D07
Deuteranopia (green-blind)
#5B5116
Tritanopia (blue-blind)
#634843
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b4f12;
/* rgb */ color: rgb(91, 79, 18);
/* oklch */ color: oklch(42.8% 0.079 97.6);
Tailwind
colors: {
  custom: {
    50: '#8c8055',
    500: '#5b4f12',
    950: '#000000',
  },
}
SCSS
$custom: #5b4f12;
$custom-light: #8c8055;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4f12",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 18
  },
  "hsl": {
    "h": 50.137,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.42756,
    "c": 0.07901,
    "h": 97.6
  },
  "luminance": 0.0786
}

Semantic roles & 50–950 ramp

primary
#5B4F12
secondary
#354593
accent
#5AEA3E
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5B4F12

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

Preview Lab → · Contrast checker → · Palette generator →

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