#5B5916#5B5916

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

Color values

HEX#5B5916
RGBrgb(91, 89, 22)
HSLhsl(58, 61%, 22%)
HSVhsv(58, 76%, 36%)
CMYKcmyk(0%, 2.2%, 75.8%, 64.3%)
CIE-LABlab(36.79, -8.15, 36.92)
CIE-LCHlch(36.79, 37.81, 102.44°)
OKLaboklab(45.23% -0.0261 0.082)
OKLCHoklch(45.23% 0.086 107.7)
XYZxyz(8.0319, 9.4271, 2.1554)
Luminance0.0943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5916 #16185B
analogous
#5B3716 #5B5916 #3B5B16
triadic
#5B5916 #165B59 #59165B
tetradic
#5B5916 #165B37 #16185B #5B163B
square
#5B5916 #165B37 #16185B #5B163B
split-complementary
#5B5916 #163B5B #37165B
monochromatic
#191806 #2A290A #5B5916 #8C8922 #BEB92E

Accessibility & contrast

On white

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

On black

2.89
#5B5916 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5B5916#FFFFFF#000000##FFFFFF
##5B59161.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b5916;
/* rgb */ color: rgb(91, 89, 22);
/* oklch */ color: oklch(45.2% 0.086 107.7);
Tailwind
colors: {
  custom: {
    50: '#8c8758',
    500: '#5b5916',
    950: '#000000',
  },
}
SCSS
$custom: #5b5916;
$custom-light: #8c8758;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5916",
  "rgb": {
    "r": 91,
    "g": 89,
    "b": 22
  },
  "hsl": {
    "h": 58.261,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.45232,
    "c": 0.08603,
    "h": 107.7
  },
  "luminance": 0.09427
}

Semantic roles & 50–950 ramp

primary
#5B5916
secondary
#3B3D92
accent
#48E444
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B04
muted
#7D7C79

Preview Lab

Preview with #5B5916

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

Preview Lab → · Contrast checker → · Palette generator →

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