#5B8A28#5B8A28

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

Color values

HEX#5B8A28
RGBrgb(91, 138, 40)
HSLhsl(89, 55%, 35%)
HSVhsv(89, 71%, 54%)
CMYKcmyk(34.1%, 0%, 71%, 45.9%)
CIE-LABlab(52.46, -32.37, 45.25)
CIE-LCHlch(52.46, 55.63, 125.58°)
OKLaboklab(57.92% -0.0912 0.1025)
OKLCHoklch(57.92% 0.137 131.7)
XYZxyz(13.7857, 20.5538, 5.2480)
Luminance0.2055 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8A28 #57288A
analogous
#8A8828 #5B8A28 #2A8A28
triadic
#5B8A28 #285B8A #8A285B
tetradic
#5B8A28 #288A88 #57288A #8A282A
square
#5B8A28 #288A88 #57288A #8A282A
split-complementary
#5B8A28 #282A8A #88288A
monochromatic
#1C2B0C #3C5B1A #5B8A28 #7AB936 #99D05D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B8A28#FFFFFF#000000##000000
##5B8A281.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)
#907F19
Deuteranopia (green-blind)
#8A7C31
Tritanopia (blue-blind)
#5C8476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5b8a28;
/* rgb */ color: rgb(91, 138, 40);
/* oklch */ color: oklch(57.9% 0.137 131.7);
Tailwind
colors: {
  custom: {
    50: '#8dac68',
    500: '#5b8a28',
    950: '#000000',
  },
}
SCSS
$custom: #5b8a28;
$custom-light: #8dac68;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8a28",
  "rgb": {
    "r": 91,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 88.776,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.57922,
    "c": 0.13723,
    "h": 131.7
  },
  "luminance": 0.20554
}

Semantic roles & 50–950 ramp

primary
#5B8A28
secondary
#8559B5
accent
#49DE91
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5B8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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