#5B8117#5B8117

#5B8117 is a mid, vivid yellow-green. Relative luminance 0.180; OKLCH L 55.5% C 0.136 H 128.2°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#5B8117
RGBrgb(91, 129, 23)
HSLhsl(82, 70%, 30%)
HSVhsv(82, 82%, 51%)
CMYKcmyk(29.5%, 0%, 82.2%, 49.4%)
CIE-LABlab(49.48, -29.20, 48.51)
CIE-LCHlch(49.48, 56.62, 121.05°)
OKLaboklab(55.46% -0.084 0.1066)
OKLCHoklch(55.46% 0.136 128.2)
XYZxyz(12.3193, 17.9862, 3.6331)
Luminance0.1799 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8117 #3D1781
analogous
#817217 #5B8117 #268117
triadic
#5B8117 #175B81 #81175B
tetradic
#5B8117 #178172 #3D1781 #811726
square
#5B8117 #178172 #3D1781 #811726
split-complementary
#5B8117 #172681 #721781
monochromatic
#121A05 #364D0E #5B8117 #80B520 #A0DB37

Accessibility & contrast

On white

4.57
#5B8117 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#5B8117 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8117
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8117#FFFFFF#000000##000000
##5B81171.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#837523
Tritanopia (blue-blind)
#5E7B6E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5b8117;
/* rgb */ color: rgb(91, 129, 23);
/* oklch */ color: oklch(55.5% 0.136 128.2);
Tailwind
colors: {
  custom: {
    50: '#8da55f',
    500: '#5b8117',
    950: '#000000',
  },
}
SCSS
$custom: #5b8117;
$custom-light: #8da55f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8117",
  "rgb": {
    "r": 91,
    "g": 129,
    "b": 23
  },
  "hsl": {
    "h": 81.509,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.55463,
    "c": 0.1357,
    "h": 128.2
  },
  "luminance": 0.17987
}

Semantic roles & 50–950 ramp

primary
#5B8117
secondary
#693EB5
accent
#3BED7B
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5B8117

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

Preview Lab → · Contrast checker → · Palette generator →

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