#5B511C#5B511C

#5B511C is a dark, moderate yellow. Relative luminance 0.082; OKLCH L 43.3% C 0.073 H 98.6°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#5B511C
RGBrgb(91, 81, 28)
HSLhsl(50, 53%, 23%)
HSVhsv(50, 69%, 36%)
CMYKcmyk(0%, 11%, 69.2%, 64.3%)
CIE-LABlab(34.38, -3.02, 31.69)
CIE-LCHlch(34.38, 31.83, 95.45°)
OKLaboklab(43.33% -0.0109 0.072)
OKLCHoklch(43.33% 0.073 98.6)
XYZxyz(7.4667, 8.1932, 2.2865)
Luminance0.0819 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B511C #1C265B
analogous
#5B311C #5B511C #455B1C
triadic
#5B511C #1C5B51 #511C5B
tetradic
#5B511C #1C5B31 #1C265B #5B1C45
square
#5B511C #1C5B31 #1C265B #5B1C45
split-complementary
#5B511C #1C455B #311C5B
monochromatic
#171507 #2C270E #5B511C #8A7B2A #B9A439

Accessibility & contrast

On white

7.96
#5B511C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5B511C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B511C
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B511C#FFFFFF#000000##FFFFFF
##5B511C1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594F16
Deuteranopia (green-blind)
#5C521F
Tritanopia (blue-blind)
#624B46
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b511c;
/* rgb */ color: rgb(91, 81, 28);
/* oklch */ color: oklch(43.3% 0.073 98.6);
Tailwind
colors: {
  custom: {
    50: '#8c815b',
    500: '#5b511c',
    950: '#000000',
  },
}
SCSS
$custom: #5b511c;
$custom-light: #8c815b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b511c",
  "rgb": {
    "r": 91,
    "g": 81,
    "b": 28
  },
  "hsl": {
    "h": 50.476,
    "s": 52.941,
    "l": 23.333
  },
  "oklch": {
    "l": 0.43331,
    "c": 0.07285,
    "h": 98.6
  },
  "luminance": 0.08193
}

Semantic roles & 50–950 ramp

primary
#5B511C
secondary
#424F90
accent
#62DC4B
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A04
muted
#7D7C79

Preview Lab

Preview with #5B511C

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

Preview Lab → · Contrast checker → · Palette generator →

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