#5B4F0F#5B4F0F

#5B4F0F is a dark, moderate yellow. Relative luminance 0.079; OKLCH L 42.7% C 0.081 H 97.9°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#5B4F0F
RGBrgb(91, 79, 15)
HSLhsl(51, 72%, 21%)
HSVhsv(51, 84%, 36%)
CMYKcmyk(0%, 13.2%, 83.5%, 64.3%)
CIE-LABlab(33.67, -2.57, 36.77)
CIE-LCHlch(33.67, 36.86, 93.99°)
OKLaboklab(42.73% -0.0112 0.0802)
OKLCHoklch(42.73% 0.081 97.9)
XYZxyz(7.1970, 7.8510, 1.5882)
Luminance0.0785 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4F0F #0F1B5B
analogous
#5B290F #5B4F0F #415B0F
triadic
#5B4F0F #0F5B4F #4F0F5B
tetradic
#5B4F0F #0F5B29 #0F1B5B #5B0F41
square
#5B4F0F #0F5B29 #0F1B5B #5B0F41
split-complementary
#5B4F0F #0F415B #290F5B
monochromatic
#1A1704 #262106 #5B4F0F #907D18 #C4AA20

Accessibility & contrast

On white

8.17
#5B4F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5B4F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4F0F
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4F0F#FFFFFF#000000##FFFFFF
##5B4F0F1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D03
Deuteranopia (green-blind)
#5B5113
Tritanopia (blue-blind)
#634843
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b4f0f;
/* rgb */ color: rgb(91, 79, 15);
/* oklch */ color: oklch(42.7% 0.081 97.9);
Tailwind
colors: {
  custom: {
    50: '#8c8053',
    500: '#5b4f0f',
    950: '#000000',
  },
}
SCSS
$custom: #5b4f0f;
$custom-light: #8c8053;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4f0f",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 15
  },
  "hsl": {
    "h": 50.526,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42734,
    "c": 0.08093,
    "h": 97.9
  },
  "luminance": 0.07851
}

Semantic roles & 50–950 ramp

primary
#5B4F0F
secondary
#314195
accent
#56EE39
background
#F8F7F4
surface
#F0EEE8
border
#CBC9C4
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5B4F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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