#5B5612#5B5612

#5B5612 is a dark, moderate yellow. Relative luminance 0.089; OKLCH L 44.5% C 0.086 H 105.1°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5B5612
RGBrgb(91, 86, 18)
HSLhsl(56, 67%, 21%)
HSVhsv(56, 80%, 36%)
CMYKcmyk(0%, 5.5%, 80.2%, 64.3%)
CIE-LABlab(35.84, -6.60, 37.62)
CIE-LCHlch(35.84, 38.20, 99.95°)
OKLaboklab(44.46% -0.0222 0.0826)
OKLCHoklch(44.46% 0.086 105.1)
XYZxyz(7.7517, 8.9237, 1.8863)
Luminance0.0892 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5612 #12175B
analogous
#5B3212 #5B5612 #3C5B12
triadic
#5B5612 #125B56 #56125B
tetradic
#5B5612 #125B32 #12175B #5B123C
square
#5B5612 #125B32 #12175B #5B123C
split-complementary
#5B5612 #123C5B #32125B
monochromatic
#1A1805 #282608 #5B5612 #8E861C #C1B726

Accessibility & contrast

On white

7.54
#5B5612 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5B5612 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B5612
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5612#FFFFFF#000000##FFFFFF
##5B56121.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5305
Deuteranopia (green-blind)
#605617
Tritanopia (blue-blind)
#625049
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b5612;
/* rgb */ color: rgb(91, 86, 18);
/* oklch */ color: oklch(44.5% 0.086 105.1);
Tailwind
colors: {
  custom: {
    50: '#8c8556',
    500: '#5b5612',
    950: '#000000',
  },
}
SCSS
$custom: #5b5612;
$custom-light: #8c8556;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5612",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 18
  },
  "hsl": {
    "h": 55.89,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.44461,
    "c": 0.08557,
    "h": 105.1
  },
  "luminance": 0.08923
}

Semantic roles & 50–950 ramp

primary
#5B5612
secondary
#353C93
accent
#4AEA3E
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5B5612

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

Preview Lab → · Contrast checker → · Palette generator →

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