#5A9871#5A9871

#5A9871 is a light, moderate green. Relative luminance 0.258; OKLCH L 62.6% C 0.088 H 155.3°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#5A9871
RGBrgb(90, 152, 113)
HSLhsl(142, 26%, 47%)
HSVhsv(142, 41%, 60%)
CMYKcmyk(40.8%, 0%, 25.7%, 40.4%)
CIE-LABlab(57.87, -29.02, 14.37)
CIE-LCHlch(57.87, 32.38, 153.66°)
OKLaboklab(62.65% -0.0798 0.0367)
OKLCHoklch(62.65% 0.088 155.3)
XYZxyz(18.4241, 25.8212, 19.6327)
Luminance0.2582 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9871 #985A81
analogous
#62985A #5A9871 #5A9890
triadic
#5A9871 #715A98 #98715A
tetradic
#5A9871 #5A6298 #985A81 #98905A
square
#5A9871 #5A6298 #985A81 #98905A
split-complementary
#5A9871 #905A98 #985A62
monochromatic
#2C4B38 #437254 #5A9871 #7DB291 #A4C9B1

Accessibility & contrast

On white

3.41
#5A9871 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#5A9871 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9871
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9871#FFFFFF#000000##000000
##5A98711.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#988F6F
Deuteranopia (green-blind)
#8E8873
Tritanopia (blue-blind)
#4D978D
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #5a9871;
/* rgb */ color: rgb(90, 152, 113);
/* oklch */ color: oklch(62.6% 0.088 155.3);
Tailwind
colors: {
  custom: {
    50: '#8bb69a',
    500: '#5a9871',
    950: '#000000',
  },
}
SCSS
$custom: #5a9871;
$custom-light: #8bb69a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9871",
  "rgb": {
    "r": 90,
    "g": 152,
    "b": 113
  },
  "hsl": {
    "h": 142.258,
    "s": 25.62,
    "l": 47.451
  },
  "oklch": {
    "l": 0.6265,
    "c": 0.08779,
    "h": 155.3
  },
  "luminance": 0.25822
}

Semantic roles & 50–950 ramp

primary
#5A9871
secondary
#B797AB
accent
#66A0C2
background
#F8FBF9
surface
#F0F6F2
border
#CBD0CC
text
#0C110E
muted
#7D807E

Preview Lab

Preview with #5A9871

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

Preview Lab → · Contrast checker → · Palette generator →

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