#5B5312#5B5312

#5B5312 is a dark, moderate yellow. Relative luminance 0.085; OKLCH L 43.7% C 0.083 H 102.0°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#5B5312
RGBrgb(91, 83, 18)
HSLhsl(53, 67%, 21%)
HSVhsv(53, 80%, 36%)
CMYKcmyk(0%, 8.8%, 80.2%, 64.3%)
CIE-LABlab(34.91, -4.83, 36.76)
CIE-LCHlch(34.91, 37.07, 97.48°)
OKLaboklab(43.73% -0.0172 0.0808)
OKLCHoklch(43.73% 0.083 102)
XYZxyz(7.5172, 8.4547, 1.8081)
Luminance0.0845 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5312 #121A5B
analogous
#5B2F12 #5B5312 #3F5B12
triadic
#5B5312 #125B53 #53125B
tetradic
#5B5312 #125B2F #121A5B #5B123F
square
#5B5312 #125B2F #121A5B #5B123F
split-complementary
#5B5312 #123F5B #2F125B
monochromatic
#1A1705 #282408 #5B5312 #8E821C #C1B026

Accessibility & contrast

On white

7.80
#5B5312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5B5312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B5312
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5312#FFFFFF#000000##FFFFFF
##5B53121.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5006
Deuteranopia (green-blind)
#5E5417
Tritanopia (blue-blind)
#634C47
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b5312;
/* rgb */ color: rgb(91, 83, 18);
/* oklch */ color: oklch(43.7% 0.083 102.0);
Tailwind
colors: {
  custom: {
    50: '#8c8356',
    500: '#5b5312',
    950: '#000000',
  },
}
SCSS
$custom: #5b5312;
$custom-light: #8c8356;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5312",
  "rgb": {
    "r": 91,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 53.425,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.43725,
    "c": 0.0826,
    "h": 102
  },
  "luminance": 0.08454
}

Semantic roles & 50–950 ramp

primary
#5B5312
secondary
#354093
accent
#51EA3E
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5B5312

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

Preview Lab → · Contrast checker → · Palette generator →

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