#5B4912#5B4912

#5B4912 is a dark, moderate yellow. Relative luminance 0.070; OKLCH L 41.3% C 0.075 H 90.0°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#5B4912
RGBrgb(91, 73, 18)
HSLhsl(45, 67%, 21%)
HSVhsv(45, 80%, 36%)
CMYKcmyk(0%, 19.8%, 80.2%, 64.3%)
CIE-LABlab(31.88, 1.24, 33.86)
CIE-LCHlch(31.88, 33.89, 87.90°)
OKLaboklab(41.33% 0 0.0746)
OKLCHoklch(41.33% 0.075 90)
XYZxyz(6.8065, 7.0333, 1.5712)
Luminance0.0703 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4912 #12245B
analogous
#5B2512 #5B4912 #495B12
triadic
#5B4912 #125B49 #49125B
tetradic
#5B4912 #125B25 #12245B #5B1249
square
#5B4912 #125B25 #12245B #5B1249
split-complementary
#5B4912 #12495B #25125B
monochromatic
#1A1405 #282008 #5B4912 #8E721C #C19B26

Accessibility & contrast

On white

8.73
#5B4912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5B4912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4912
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4912#FFFFFF#000000##FFFFFF
##5B49121.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524809
Deuteranopia (green-blind)
#574D15
Tritanopia (blue-blind)
#63423E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b4912;
/* rgb */ color: rgb(91, 73, 18);
/* oklch */ color: oklch(41.3% 0.075 90.0);
Tailwind
colors: {
  custom: {
    50: '#8c7b54',
    500: '#5b4912',
    950: '#000000',
  },
}
SCSS
$custom: #5b4912;
$custom-light: #8c7b54;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4912",
  "rgb": {
    "r": 91,
    "g": 73,
    "b": 18
  },
  "hsl": {
    "h": 45.205,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.41327,
    "c": 0.07464,
    "h": 90
  },
  "luminance": 0.07033
}

Semantic roles & 50–950 ramp

primary
#5B4912
secondary
#354D93
accent
#68EA3E
background
#F8F7F5
surface
#F0EDE9
border
#CBC8C5
text
#0C0903
muted
#7D7B78

Preview Lab

Preview with #5B4912

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

Preview Lab → · Contrast checker → · Palette generator →

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