#5B7D22#5B7D22

#5B7D22 is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.5% C 0.124 H 127.9°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#5B7D22
RGBrgb(91, 125, 34)
HSLhsl(82, 57%, 31%)
HSVhsv(82, 73%, 49%)
CMYKcmyk(27.2%, 0%, 72.8%, 51%)
CIE-LABlab(48.27, -26.63, 43.41)
CIE-LCHlch(48.27, 50.93, 121.53°)
OKLaboklab(54.5% -0.0761 0.0977)
OKLCHoklch(54.5% 0.124 127.9)
XYZxyz(11.9367, 17.0066, 4.1668)
Luminance0.1701 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7D22 #44227D
analogous
#7D7122 #5B7D22 #2D7D22
triadic
#5B7D22 #225B7D #7D225B
tetradic
#5B7D22 #227D71 #44227D #7D222D
square
#5B7D22 #227D71 #44227D #7D222D
split-complementary
#5B7D22 #222D7D #71227D
monochromatic
#151D08 #384D15 #5B7D22 #7EAD2F #9DCE4B

Accessibility & contrast

On white

4.77
#5B7D22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#5B7D22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7D22
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7D22#FFFFFF#000000##FFFFFF
##5B7D221.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837413
Deuteranopia (green-blind)
#7F722A
Tritanopia (blue-blind)
#5E776B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5b7d22;
/* rgb */ color: rgb(91, 125, 34);
/* oklch */ color: oklch(54.5% 0.124 127.9);
Tailwind
colors: {
  custom: {
    50: '#8ca363',
    500: '#5b7d22',
    950: '#000000',
  },
}
SCSS
$custom: #5b7d22;
$custom-light: #8ca363;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7d22",
  "rgb": {
    "r": 91,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 82.418,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.545,
    "c": 0.12385,
    "h": 127.9
  },
  "luminance": 0.17007
}

Semantic roles & 50–950 ramp

primary
#5B7D22
secondary
#714BB0
accent
#47E081
background
#F8FAF6
surface
#F0F3EB
border
#CBCDC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5B7D22

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

Preview Lab → · Contrast checker → · Palette generator →

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