#5B500F#5B500F

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

Color values

HEX#5B500F
RGBrgb(91, 80, 15)
HSLhsl(51, 72%, 21%)
HSVhsv(51, 84%, 36%)
CMYKcmyk(0%, 12.1%, 83.5%, 64.3%)
CIE-LABlab(33.98, -3.17, 37.05)
CIE-LCHlch(33.98, 37.19, 94.89°)
OKLaboklab(42.98% -0.0129 0.0807)
OKLCHoklch(42.98% 0.082 99.1)
XYZxyz(7.2696, 7.9963, 1.6124)
Luminance0.0800 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B500F #0F1A5B
analogous
#5B2A0F #5B500F #405B0F
triadic
#5B500F #0F5B50 #500F5B
tetradic
#5B500F #0F5B2A #0F1A5B #5B0F40
square
#5B500F #0F5B2A #0F1A5B #5B0F40
split-complementary
#5B500F #0F405B #2A0F5B
monochromatic
#1A1704 #262206 #5B500F #907E18 #C4AC20

Accessibility & contrast

On white

8.08
#5B500F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B500F
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B500F#FFFFFF#000000##FFFFFF
##5B500F1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b500f;
/* rgb */ color: rgb(91, 80, 15);
/* oklch */ color: oklch(43.0% 0.082 99.1);
Tailwind
colors: {
  custom: {
    50: '#8c8054',
    500: '#5b500f',
    950: '#000000',
  },
}
SCSS
$custom: #5b500f;
$custom-light: #8c8054;
$custom-dark: #000000;
JSON
{
  "hex": "#5b500f",
  "rgb": {
    "r": 91,
    "g": 80,
    "b": 15
  },
  "hsl": {
    "h": 51.316,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42976,
    "c": 0.08176,
    "h": 99.1
  },
  "luminance": 0.07996
}

Semantic roles & 50–950 ramp

primary
#5B500F
secondary
#314095
accent
#54EE39
background
#F8F7F5
surface
#F0EEE8
border
#CBC9C4
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5B500F

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

Preview Lab → · Contrast checker → · Palette generator →

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