#5B5412#5B5412

#5B5412 is a dark, moderate yellow. Relative luminance 0.086; OKLCH L 44.0% C 0.084 H 103.1°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5B5412
RGBrgb(91, 84, 18)
HSLhsl(54, 67%, 21%)
HSVhsv(54, 80%, 36%)
CMYKcmyk(0%, 7.7%, 80.2%, 64.3%)
CIE-LABlab(35.22, -5.42, 37.04)
CIE-LCHlch(35.22, 37.44, 98.33°)
OKLaboklab(43.97% -0.0189 0.0814)
OKLCHoklch(43.97% 0.084 103.1)
XYZxyz(7.5942, 8.6088, 1.8338)
Luminance0.0861 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5412 #12195B
analogous
#5B3012 #5B5412 #3E5B12
triadic
#5B5412 #125B54 #54125B
tetradic
#5B5412 #125B30 #12195B #5B123E
square
#5B5412 #125B30 #12195B #5B123E
split-complementary
#5B5412 #123E5B #30125B
monochromatic
#1A1805 #282508 #5B5412 #8E831C #C1B226

Accessibility & contrast

On white

7.72
#5B5412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5B5412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B5412
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5412#FFFFFF#000000##FFFFFF
##5B54121.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5106
Deuteranopia (green-blind)
#5F5417
Tritanopia (blue-blind)
#634E47
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b5412;
/* rgb */ color: rgb(91, 84, 18);
/* oklch */ color: oklch(44.0% 0.084 103.1);
Tailwind
colors: {
  custom: {
    50: '#8c8356',
    500: '#5b5412',
    950: '#000000',
  },
}
SCSS
$custom: #5b5412;
$custom-light: #8c8356;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5412",
  "rgb": {
    "r": 91,
    "g": 84,
    "b": 18
  },
  "hsl": {
    "h": 54.247,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.4397,
    "c": 0.08357,
    "h": 103.1
  },
  "luminance": 0.08608
}

Semantic roles & 50–950 ramp

primary
#5B5412
secondary
#353E93
accent
#4EEA3E
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5B5412

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

Preview Lab → · Contrast checker → · Palette generator →

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