#5B8D22#5B8D22

#5B8D22 is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.7% C 0.145 H 131.7°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#5B8D22
RGBrgb(91, 141, 34)
HSLhsl(88, 61%, 34%)
HSVhsv(88, 76%, 55%)
CMYKcmyk(35.5%, 0%, 75.9%, 44.7%)
CIE-LABlab(53.37, -34.16, 48.48)
CIE-LCHlch(53.37, 59.31, 125.17°)
OKLaboklab(58.66% -0.0966 0.1084)
OKLCHoklch(58.66% 0.145 131.7)
XYZxyz(14.1278, 21.3888, 4.8971)
Luminance0.2139 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8D22 #54228D
analogous
#8D8A22 #5B8D22 #268D22
triadic
#5B8D22 #225B8D #8D225B
tetradic
#5B8D22 #228D8A #54228D #8D2226
square
#5B8D22 #228D8A #54228D #8D2226
split-complementary
#5B8D22 #22268D #8A228D
monochromatic
#1B2A0A #3B5C16 #5B8D22 #7BBE2E #99D654

Accessibility & contrast

On white

3.98
#5B8D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#5B8D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8D22
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8D22#FFFFFF#000000##000000
##5B8D221.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820C
Deuteranopia (green-blind)
#8C7E2C
Tritanopia (blue-blind)
#5C8778
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5b8d22;
/* rgb */ color: rgb(91, 141, 34);
/* oklch */ color: oklch(58.7% 0.145 131.7);
Tailwind
colors: {
  custom: {
    50: '#8eae65',
    500: '#5b8d22',
    950: '#000000',
  },
}
SCSS
$custom: #5b8d22;
$custom-light: #8eae65;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8d22",
  "rgb": {
    "r": 91,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 88.037,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58655,
    "c": 0.14515,
    "h": 131.7
  },
  "luminance": 0.21389
}

Semantic roles & 50–950 ramp

primary
#5B8D22
secondary
#8251B9
accent
#44E48F
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B8D22

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

Preview Lab → · Contrast checker → · Palette generator →

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