#5B5212#5B5212

#5B5212 is a dark, moderate yellow. Relative luminance 0.083; OKLCH L 43.5% C 0.082 H 101.0°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#5B5212
RGBrgb(91, 82, 18)
HSLhsl(53, 67%, 21%)
HSVhsv(53, 80%, 36%)
CMYKcmyk(0%, 9.9%, 80.2%, 64.3%)
CIE-LABlab(34.61, -4.23, 36.46)
CIE-LCHlch(34.61, 36.71, 96.62°)
OKLaboklab(43.48% -0.0155 0.0802)
OKLCHoklch(43.48% 0.082 101)
XYZxyz(7.4412, 8.3027, 1.7828)
Luminance0.0830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5212 #121B5B
analogous
#5B2E12 #5B5212 #405B12
triadic
#5B5212 #125B52 #52125B
tetradic
#5B5212 #125B2E #121B5B #5B1240
square
#5B5212 #125B2E #121B5B #5B1240
split-complementary
#5B5212 #12405B #2E125B
monochromatic
#1A1705 #282408 #5B5212 #8E801C #C1AE26

Accessibility & contrast

On white

7.89
#5B5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5B5212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B5212
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5212#FFFFFF#000000##FFFFFF
##5B52121.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B4F06
Deuteranopia (green-blind)
#5D5316
Tritanopia (blue-blind)
#634B46
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b5212;
/* rgb */ color: rgb(91, 82, 18);
/* oklch */ color: oklch(43.5% 0.082 101.0);
Tailwind
colors: {
  custom: {
    50: '#8c8255',
    500: '#5b5212',
    950: '#000000',
  },
}
SCSS
$custom: #5b5212;
$custom-light: #8c8255;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5212",
  "rgb": {
    "r": 91,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 52.603,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.43482,
    "c": 0.08166,
    "h": 101
  },
  "luminance": 0.08302
}

Semantic roles & 50–950 ramp

primary
#5B5212
secondary
#354193
accent
#53EA3E
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5B5212

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

Preview Lab → · Contrast checker → · Palette generator →

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