#5B5012#5B5012

#5B5012 is a dark, moderate yellow. Relative luminance 0.080; OKLCH L 43.0% C 0.080 H 98.8°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#5B5012
RGBrgb(91, 80, 18)
HSLhsl(51, 67%, 21%)
HSVhsv(51, 80%, 36%)
CMYKcmyk(0%, 12.1%, 80.2%, 64.3%)
CIE-LABlab(33.99, -3.03, 35.89)
CIE-LCHlch(33.99, 36.01, 94.82°)
OKLaboklab(43% -0.0121 0.0789)
OKLCHoklch(43% 0.08 98.8)
XYZxyz(7.2926, 8.0055, 1.7332)
Luminance0.0800 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5012 #121D5B
analogous
#5B2C12 #5B5012 #425B12
triadic
#5B5012 #125B50 #50125B
tetradic
#5B5012 #125B2C #121D5B #5B1242
square
#5B5012 #125B2C #121D5B #5B1242
split-complementary
#5B5012 #12425B #2C125B
monochromatic
#1A1605 #282308 #5B5012 #8E7D1C #C1AA26

Accessibility & contrast

On white

8.07
#5B5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5B5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B5012
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5012#FFFFFF#000000##FFFFFF
##5B50121.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E07
Deuteranopia (green-blind)
#5C5216
Tritanopia (blue-blind)
#634944
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b5012;
/* rgb */ color: rgb(91, 80, 18);
/* oklch */ color: oklch(43.0% 0.080 98.8);
Tailwind
colors: {
  custom: {
    50: '#8c8055',
    500: '#5b5012',
    950: '#000000',
  },
}
SCSS
$custom: #5b5012;
$custom-light: #8c8055;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5012",
  "rgb": {
    "r": 91,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 50.959,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.42997,
    "c": 0.07986,
    "h": 98.8
  },
  "luminance": 0.08005
}

Semantic roles & 50–950 ramp

primary
#5B5012
secondary
#354493
accent
#58EA3E
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5B5012

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

Preview Lab → · Contrast checker → · Palette generator →

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