#5B8B22#5B8B22

#5B8B22 is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.1% C 0.143 H 131.3°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5B8B22
RGBrgb(91, 139, 34)
HSLhsl(87, 61%, 34%)
HSVhsv(87, 76%, 55%)
CMYKcmyk(34.5%, 0%, 75.5%, 45.5%)
CIE-LABlab(52.73, -33.25, 47.86)
CIE-LCHlch(52.73, 58.27, 124.79°)
OKLaboklab(58.13% -0.0941 0.1071)
OKLCHoklch(58.13% 0.143 131.3)
XYZxyz(13.8356, 20.8044, 4.7997)
Luminance0.2081 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8B22 #52228B
analogous
#8B8722 #5B8B22 #268B22
triadic
#5B8B22 #225B8B #8B225B
tetradic
#5B8B22 #228B87 #52228B #8B2226
square
#5B8B22 #228B87 #52228B #8B2226
split-complementary
#5B8B22 #22268B #87228B
monochromatic
#1B290A #3B5A16 #5B8B22 #7BBC2E #99D553

Accessibility & contrast

On white

4.07
#5B8B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#5B8B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8B22
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8B22#FFFFFF#000000##000000
##5B8B221.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800D
Deuteranopia (green-blind)
#8B7D2C
Tritanopia (blue-blind)
#5D8577
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5b8b22;
/* rgb */ color: rgb(91, 139, 34);
/* oklch */ color: oklch(58.1% 0.143 131.3);
Tailwind
colors: {
  custom: {
    50: '#8ead65',
    500: '#5b8b22',
    950: '#000000',
  },
}
SCSS
$custom: #5b8b22;
$custom-light: #8ead65;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8b22",
  "rgb": {
    "r": 91,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 87.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58134,
    "c": 0.14254,
    "h": 131.3
  },
  "luminance": 0.20805
}

Semantic roles & 50–950 ramp

primary
#5B8B22
secondary
#8050B8
accent
#44E48D
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B8B22

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

Preview Lab → · Contrast checker → · Palette generator →

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