#5B7925#5B7925

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

Color values

HEX#5B7925
RGBrgb(91, 121, 37)
HSLhsl(81, 53%, 31%)
HSVhsv(81, 69%, 47%)
CMYKcmyk(24.8%, 0%, 69.4%, 52.5%)
CIE-LABlab(47.02, -24.43, 40.86)
CIE-LCHlch(47.02, 47.61, 120.87°)
OKLaboklab(53.49% -0.0698 0.0929)
OKLCHoklch(53.49% 0.116 126.9)
XYZxyz(11.4857, 16.0323, 4.2393)
Luminance0.1603 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7925 #432579
analogous
#796D25 #5B7925 #317925
triadic
#5B7925 #255B79 #79255B
tetradic
#5B7925 #25796D #432579 #792531
square
#5B7925 #25796D #432579 #792531
split-complementary
#5B7925 #253179 #6D2579
monochromatic
#151B08 #384A17 #5B7925 #7EA833 #9EC94F

Accessibility & contrast

On white

4.99
#5B7925 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#5B7925 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7925
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7925#FFFFFF#000000##FFFFFF
##5B79251.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b7925;
/* rgb */ color: rgb(91, 121, 37);
/* oklch */ color: oklch(53.5% 0.116 126.9);
Tailwind
colors: {
  custom: {
    50: '#8ca064',
    500: '#5b7925',
    950: '#000000',
  },
}
SCSS
$custom: #5b7925;
$custom-light: #8ca064;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7925",
  "rgb": {
    "r": 91,
    "g": 121,
    "b": 37
  },
  "hsl": {
    "h": 81.429,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53493,
    "c": 0.11614,
    "h": 126.9
  },
  "luminance": 0.16032
}

Semantic roles & 50–950 ramp

primary
#5B7925
secondary
#704EAB
accent
#4BDD7F
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E06
muted
#7D7E7A

Preview Lab

Preview with #5B7925

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

Preview Lab → · Contrast checker → · Palette generator →

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