#5B7316#5B7316

#5B7316 is a mid, moderate yellow-green. Relative luminance 0.145; OKLCH L 51.8% C 0.118 H 123.6°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5B7316
RGBrgb(91, 115, 22)
HSLhsl(75, 68%, 27%)
HSVhsv(75, 81%, 45%)
CMYKcmyk(20.9%, 0%, 80.9%, 54.9%)
CIE-LABlab(45.00, -22.34, 44.72)
CIE-LCHlch(45.00, 49.99, 116.55°)
OKLaboklab(51.83% -0.0654 0.0984)
OKLCHoklch(51.83% 0.118 123.6)
XYZxyz(10.5901, 14.5435, 3.0082)
Luminance0.1454 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7316 #2E1673
analogous
#735D16 #5B7316 #2D7316
triadic
#5B7316 #165B73 #73165B
tetradic
#5B7316 #16735D #2E1673 #73162D
square
#5B7316 #16735D #2E1673 #73162D
split-complementary
#5B7316 #162D73 #5D1673
monochromatic
#141A05 #32400C #5B7316 #84A620 #ABD72D

Accessibility & contrast

On white

5.37
#5B7316 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5B7316 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7316
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7316#FFFFFF#000000##FFFFFF
##5B73161.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#776A1F
Tritanopia (blue-blind)
#606D62
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5b7316;
/* rgb */ color: rgb(91, 115, 22);
/* oklch */ color: oklch(51.8% 0.118 123.6);
Tailwind
colors: {
  custom: {
    50: '#8d9b5c',
    500: '#5b7316',
    950: '#000000',
  },
}
SCSS
$custom: #5b7316;
$custom-light: #8d9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7316",
  "rgb": {
    "r": 91,
    "g": 115,
    "b": 22
  },
  "hsl": {
    "h": 75.484,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.5183,
    "c": 0.11817,
    "h": 123.6
  },
  "luminance": 0.14544
}

Semantic roles & 50–950 ramp

primary
#5B7316
secondary
#583CA9
accent
#3DEB6A
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7316

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

Preview Lab → · Contrast checker → · Palette generator →

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