#5B8310#5B8310

#5B8310 is a mid, vivid yellow-green. Relative luminance 0.185; OKLCH L 56.0% C 0.141 H 128.4°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#5B8310
RGBrgb(91, 131, 16)
HSLhsl(81, 78%, 29%)
HSVhsv(81, 88%, 51%)
CMYKcmyk(30.5%, 0%, 87.8%, 48.6%)
CIE-LABlab(50.09, -30.44, 50.97)
CIE-LCHlch(50.09, 59.36, 120.84°)
OKLaboklab(55.95% -0.0877 0.1107)
OKLCHoklch(55.95% 0.141 128.4)
XYZxyz(12.5242, 18.4938, 3.3999)
Luminance0.1849 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8310 #381083
analogous
#837210 #5B8310 #218310
triadic
#5B8310 #105B83 #83105B
tetradic
#5B8310 #108372 #381083 #831021
square
#5B8310 #108372 #381083 #831021
split-complementary
#5B8310 #102183 #721083
monochromatic
#131B03 #354C09 #5B8310 #81BA17 #A3E529

Accessibility & contrast

On white

4.47
#5B8310 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#5B8310 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8310
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8310#FFFFFF#000000##000000
##5B83101.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#84761F
Tritanopia (blue-blind)
#5E7D6F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5b8310;
/* rgb */ color: rgb(91, 131, 16);
/* oklch */ color: oklch(56.0% 0.141 128.4);
Tailwind
colors: {
  custom: {
    50: '#8ea75c',
    500: '#5b8310',
    950: '#000000',
  },
}
SCSS
$custom: #5b8310;
$custom-light: #8ea75c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8310",
  "rgb": {
    "r": 91,
    "g": 131,
    "b": 16
  },
  "hsl": {
    "h": 80.87,
    "s": 78.231,
    "l": 28.824
  },
  "oklch": {
    "l": 0.55951,
    "c": 0.14125,
    "h": 128.4
  },
  "luminance": 0.18494
}

Semantic roles & 50–950 ramp

primary
#5B8310
secondary
#6436B9
accent
#33F576
background
#F9FAF5
surface
#F1F4E9
border
#CBCEC5
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5B8310

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

Preview Lab → · Contrast checker → · Palette generator →

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