#5B9822#5B9822

#5B9822 is a mid, vivid yellow-green. Relative luminance 0.248; OKLCH L 61.5% C 0.159 H 133.5°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#5B9822
RGBrgb(91, 152, 34)
HSLhsl(91, 63%, 36%)
HSVhsv(91, 78%, 60%)
CMYKcmyk(40.1%, 0%, 77.6%, 40.4%)
CIE-LABlab(56.88, -39.02, 51.87)
CIE-LCHlch(56.88, 64.91, 126.95°)
OKLaboklab(61.52% -0.1097 0.1155)
OKLCHoklch(61.52% 0.159 133.5)
XYZxyz(15.8311, 24.7953, 5.4649)
Luminance0.2480 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B9822 #5F2298
analogous
#969822 #5B9822 #229824
triadic
#5B9822 #225B98 #98225B
tetradic
#5B9822 #229698 #5F2298 #982422
square
#5B9822 #229698 #5F2298 #982422
split-complementary
#5B9822 #242298 #982296
monochromatic
#1F340C #3D6617 #5B9822 #79CA2D #98DA5A

Accessibility & contrast

On white

3.52
#5B9822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#5B9822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B9822
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B9822#FFFFFF#000000##000000
##5B98221.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8C04
Deuteranopia (green-blind)
#96872E
Tritanopia (blue-blind)
#5B9282
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5b9822;
/* rgb */ color: rgb(91, 152, 34);
/* oklch */ color: oklch(61.5% 0.159 133.5);
Tailwind
colors: {
  custom: {
    50: '#8fb767',
    500: '#5b9822',
    950: '#000000',
  },
}
SCSS
$custom: #5b9822;
$custom-light: #8fb767;
$custom-dark: #000000;
JSON
{
  "hex": "#5b9822",
  "rgb": {
    "r": 91,
    "g": 152,
    "b": 34
  },
  "hsl": {
    "h": 91.017,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61517,
    "c": 0.15927,
    "h": 133.5
  },
  "luminance": 0.24796
}

Semantic roles & 50–950 ramp

primary
#5B9822
secondary
#8D57BE
accent
#41E697
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B9822

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

Preview Lab → · Contrast checker → · Palette generator →

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