#5B8A22#5B8A22

#5B8A22 is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.9% C 0.141 H 131.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5B8A22
RGBrgb(91, 138, 34)
HSLhsl(87, 60%, 34%)
HSVhsv(87, 75%, 54%)
CMYKcmyk(34.1%, 0%, 75.4%, 45.9%)
CIE-LABlab(52.42, -32.79, 47.54)
CIE-LCHlch(52.42, 57.76, 124.59°)
OKLaboklab(57.87% -0.0929 0.1064)
OKLCHoklch(57.87% 0.141 131.1)
XYZxyz(13.6915, 20.5161, 4.7517)
Luminance0.2052 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8A22 #51228A
analogous
#8A8522 #5B8A22 #278A22
triadic
#5B8A22 #225B8A #8A225B
tetradic
#5B8A22 #228A85 #51228A #8A2227
square
#5B8A22 #228A85 #51228A #8A2227
split-complementary
#5B8A22 #22278A #85228A
monochromatic
#1A280A #3B5916 #5B8A22 #7BBB2E #99D452

Accessibility & contrast

On white

4.11
#5B8A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#5B8A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8A22
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8A22#FFFFFF#000000##000000
##5B8A221.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0D
Deuteranopia (green-blind)
#8A7C2C
Tritanopia (blue-blind)
#5D8476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5b8a22;
/* rgb */ color: rgb(91, 138, 34);
/* oklch */ color: oklch(57.9% 0.141 131.1);
Tailwind
colors: {
  custom: {
    50: '#8dac65',
    500: '#5b8a22',
    950: '#000000',
  },
}
SCSS
$custom: #5b8a22;
$custom-light: #8dac65;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8a22",
  "rgb": {
    "r": 91,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 87.115,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57874,
    "c": 0.14123,
    "h": 131.1
  },
  "luminance": 0.20517
}

Semantic roles & 50–950 ramp

primary
#5B8A22
secondary
#7F50B8
accent
#44E48C
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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