#5B7922#5B7922

#5B7922 is a mid, moderate yellow-green. Relative luminance 0.160; OKLCH L 53.5% C 0.118 H 126.6°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5B7922
RGBrgb(91, 121, 34)
HSLhsl(81, 56%, 30%)
HSVhsv(81, 72%, 47%)
CMYKcmyk(24.8%, 0%, 71.9%, 52.5%)
CIE-LABlab(46.99, -24.65, 42.12)
CIE-LCHlch(46.99, 48.80, 120.34°)
OKLaboklab(53.47% -0.0707 0.095)
OKLCHoklch(53.47% 0.118 126.6)
XYZxyz(11.4405, 16.0142, 4.0014)
Luminance0.1601 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7922 #402279
analogous
#796B22 #5B7922 #2F7922
triadic
#5B7922 #225B79 #79225B
tetradic
#5B7922 #22796B #402279 #79222F
square
#5B7922 #22796B #402279 #79222F
split-complementary
#5B7922 #222F79 #6B2279
monochromatic
#131907 #374915 #5B7922 #7FA92F #9FCC49

Accessibility & contrast

On white

5.00
#5B7922 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#5B7922 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7922
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7922#FFFFFF#000000##FFFFFF
##5B79221.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7114
Deuteranopia (green-blind)
#7B6F29
Tritanopia (blue-blind)
#5F7368
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b7922;
/* rgb */ color: rgb(91, 121, 34);
/* oklch */ color: oklch(53.5% 0.118 126.6);
Tailwind
colors: {
  custom: {
    50: '#8ca063',
    500: '#5b7922',
    950: '#000000',
  },
}
SCSS
$custom: #5b7922;
$custom-light: #8ca063;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7922",
  "rgb": {
    "r": 91,
    "g": 121,
    "b": 34
  },
  "hsl": {
    "h": 80.69,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53466,
    "c": 0.1184,
    "h": 126.6
  },
  "luminance": 0.16014
}

Semantic roles & 50–950 ramp

primary
#5B7922
secondary
#6C4BAC
accent
#48DF7C
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E05
muted
#7D7E7A

Preview Lab

Preview with #5B7922

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

Preview Lab → · Contrast checker → · Palette generator →

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