#5B8A25#5B8A25

#5B8A25 is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.9% C 0.139 H 131.4°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#5B8A25
RGBrgb(91, 138, 37)
HSLhsl(88, 58%, 34%)
HSVhsv(88, 73%, 54%)
CMYKcmyk(34.1%, 0%, 73.2%, 45.9%)
CIE-LABlab(52.44, -32.59, 46.42)
CIE-LCHlch(52.44, 56.72, 125.07°)
OKLaboklab(57.9% -0.0921 0.1045)
OKLCHoklch(57.9% 0.139 131.4)
XYZxyz(13.7367, 20.5342, 4.9896)
Luminance0.2054 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8A25 #54258A
analogous
#8A8725 #5B8A25 #298A25
triadic
#5B8A25 #255B8A #8A255B
tetradic
#5B8A25 #258A87 #54258A #8A2529
square
#5B8A25 #258A87 #54258A #8A2529
split-complementary
#5B8A25 #25298A #87258A
monochromatic
#1B290B #3B5A18 #5B8A25 #7BBA32 #99D257

Accessibility & contrast

On white

4.11
#5B8A25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#5B8A25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8A25
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8A25#FFFFFF#000000##000000
##5B8A251.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F14
Deuteranopia (green-blind)
#8A7C2E
Tritanopia (blue-blind)
#5D8476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5b8a25;
/* rgb */ color: rgb(91, 138, 37);
/* oklch */ color: oklch(57.9% 0.139 131.4);
Tailwind
colors: {
  custom: {
    50: '#8dac66',
    500: '#5b8a25',
    950: '#000000',
  },
}
SCSS
$custom: #5b8a25;
$custom-light: #8dac66;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8a25",
  "rgb": {
    "r": 91,
    "g": 138,
    "b": 37
  },
  "hsl": {
    "h": 87.921,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57897,
    "c": 0.13929,
    "h": 131.4
  },
  "luminance": 0.20535
}

Semantic roles & 50–950 ramp

primary
#5B8A25
secondary
#8254B7
accent
#47E18F
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5B8A25

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

Preview Lab → · Contrast checker → · Palette generator →

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