#5B7E22#5B7E22

#5B7E22 is a mid, vivid yellow-green. Relative luminance 0.173; OKLCH L 54.8% C 0.125 H 128.2°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#5B7E22
RGBrgb(91, 126, 34)
HSLhsl(83, 58%, 31%)
HSVhsv(83, 73%, 49%)
CMYKcmyk(27.8%, 0%, 73%, 50.6%)
CIE-LABlab(48.59, -27.12, 43.73)
CIE-LCHlch(48.59, 51.46, 121.80°)
OKLaboklab(54.76% -0.0774 0.0984)
OKLCHoklch(54.76% 0.125 128.2)
XYZxyz(12.0640, 17.2611, 4.2092)
Luminance0.1726 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7E22 #45227E
analogous
#7E7322 #5B7E22 #2D7E22
triadic
#5B7E22 #225B7E #7E225B
tetradic
#5B7E22 #227E73 #45227E #7E222D
square
#5B7E22 #227E73 #45227E #7E222D
split-complementary
#5B7E22 #222D7E #73227E
monochromatic
#151E08 #384E15 #5B7E22 #7EAE2F #9DCF4C

Accessibility & contrast

On white

4.72
#5B7E22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#5B7E22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7E22
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7E22#FFFFFF#000000##FFFFFF
##5B7E221.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847513
Deuteranopia (green-blind)
#80732A
Tritanopia (blue-blind)
#5E786C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5b7e22;
/* rgb */ color: rgb(91, 126, 34);
/* oklch */ color: oklch(54.8% 0.125 128.2);
Tailwind
colors: {
  custom: {
    50: '#8da363',
    500: '#5b7e22',
    950: '#000000',
  },
}
SCSS
$custom: #5b7e22;
$custom-light: #8da363;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7e22",
  "rgb": {
    "r": 91,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 82.826,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54759,
    "c": 0.12521,
    "h": 128.2
  },
  "luminance": 0.17261
}

Semantic roles & 50–950 ramp

primary
#5B7E22
secondary
#724BB1
accent
#47E182
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5B7E22

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

Preview Lab → · Contrast checker → · Palette generator →

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