#5B5712#5B5712

#5B5712 is a dark, moderate yellow. Relative luminance 0.091; OKLCH L 44.7% C 0.087 H 106.0°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5B5712
RGBrgb(91, 87, 18)
HSLhsl(57, 67%, 21%)
HSVhsv(57, 80%, 36%)
CMYKcmyk(0%, 4.4%, 80.2%, 64.3%)
CIE-LABlab(36.15, -7.19, 37.91)
CIE-LCHlch(36.15, 38.59, 100.74°)
OKLaboklab(44.71% -0.0239 0.0832)
OKLCHoklch(44.71% 0.087 106)
XYZxyz(7.8321, 9.0845, 1.9131)
Luminance0.0908 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5712 #12165B
analogous
#5B3312 #5B5712 #3B5B12
triadic
#5B5712 #125B57 #57125B
tetradic
#5B5712 #125B33 #12165B #5B123B
square
#5B5712 #125B33 #12165B #5B123B
split-complementary
#5B5712 #123B5B #33125B
monochromatic
#1A1805 #282608 #5B5712 #8E881C #C1B926

Accessibility & contrast

On white

7.46
#5B5712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5B5712 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B5712
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5712#FFFFFF#000000##FFFFFF
##5B57121.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5305
Deuteranopia (green-blind)
#615617
Tritanopia (blue-blind)
#62514A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b5712;
/* rgb */ color: rgb(91, 87, 18);
/* oklch */ color: oklch(44.7% 0.087 106.0);
Tailwind
colors: {
  custom: {
    50: '#8c8656',
    500: '#5b5712',
    950: '#000000',
  },
}
SCSS
$custom: #5b5712;
$custom-light: #8c8656;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5712",
  "rgb": {
    "r": 91,
    "g": 87,
    "b": 18
  },
  "hsl": {
    "h": 56.712,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.44707,
    "c": 0.0866,
    "h": 106
  },
  "luminance": 0.09084
}

Semantic roles & 50–950 ramp

primary
#5B5712
secondary
#353A93
accent
#47EA3E
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5B5712

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

Preview Lab → · Contrast checker → · Palette generator →

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