#5B5915#5B5915

#5B5915 is a mid, moderate yellow. Relative luminance 0.094; OKLCH L 45.2% C 0.087 H 107.7°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5B5915
RGBrgb(91, 89, 21)
HSLhsl(58, 63%, 22%)
HSVhsv(58, 77%, 36%)
CMYKcmyk(0%, 2.2%, 76.9%, 64.3%)
CIE-LABlab(36.79, -8.20, 37.33)
CIE-LCHlch(36.79, 38.22, 102.39°)
OKLaboklab(45.22% -0.0264 0.0826)
OKLCHoklch(45.22% 0.087 107.7)
XYZxyz(8.0224, 9.4233, 2.1056)
Luminance0.0942 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5915 #15175B
analogous
#5B3615 #5B5915 #3A5B15
triadic
#5B5915 #155B59 #59155B
tetradic
#5B5915 #155B36 #15175B #5B153A
square
#5B5915 #155B36 #15175B #5B153A
split-complementary
#5B5915 #153A5B #36155B
monochromatic
#191806 #29280A #5B5915 #8D8A20 #BEBA2C

Accessibility & contrast

On white

7.28
#5B5915 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5B5915 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B5915
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5915#FFFFFF#000000##FFFFFF
##5B59151.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615509
Deuteranopia (green-blind)
#62581A
Tritanopia (blue-blind)
#62534C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b5915;
/* rgb */ color: rgb(91, 89, 21);
/* oklch */ color: oklch(45.2% 0.087 107.7);
Tailwind
colors: {
  custom: {
    50: '#8c8758',
    500: '#5b5915',
    950: '#000000',
  },
}
SCSS
$custom: #5b5915;
$custom-light: #8c8758;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5915",
  "rgb": {
    "r": 91,
    "g": 89,
    "b": 21
  },
  "hsl": {
    "h": 58.286,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.45224,
    "c": 0.08674,
    "h": 107.7
  },
  "luminance": 0.09423
}

Semantic roles & 50–950 ramp

primary
#5B5915
secondary
#393C92
accent
#47E642
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5B5915

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

Preview Lab → · Contrast checker → · Palette generator →

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