#5F8A52#5F8A52

#5F8A52 is a mid, moderate green. Relative luminance 0.212; OKLCH L 58.7% C 0.095 H 138.6°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#5F8A52
RGBrgb(95, 138, 82)
HSLhsl(106, 25%, 43%)
HSVhsv(106, 41%, 54%)
CMYKcmyk(31.2%, 0%, 40.6%, 45.9%)
CIE-LABlab(53.19, -26.05, 25.39)
CIE-LCHlch(53.19, 36.38, 135.74°)
OKLaboklab(58.74% -0.0712 0.0627)
OKLCHoklch(58.74% 0.095 138.6)
XYZxyz(15.3303, 21.2185, 11.2688)
Luminance0.2122 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A52 #7D528A
analogous
#7B8A52 #5F8A52 #528A61
triadic
#5F8A52 #525F8A #8A525F
tetradic
#5F8A52 #527B8A #7D528A #8A6152
square
#5F8A52 #527B8A #7D528A #8A6152
split-complementary
#5F8A52 #61528A #8A527B
monochromatic
#2A3D24 #45643B #5F8A52 #7DAA6F #A0C196

Accessibility & contrast

On white

4.00
#5F8A52 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#5F8A52 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8A52
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8A52#FFFFFF#000000##000000
##5F8A521.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D814E
Deuteranopia (green-blind)
#877E55
Tritanopia (blue-blind)
#5D867C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5f8a52;
/* rgb */ color: rgb(95, 138, 82);
/* oklch */ color: oklch(58.7% 0.095 138.6);
Tailwind
colors: {
  custom: {
    50: '#8eac83',
    500: '#5f8a52',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a52;
$custom-light: #8eac83;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a52",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 82
  },
  "hsl": {
    "h": 106.071,
    "s": 25.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.58738,
    "c": 0.09484,
    "h": 138.6
  },
  "luminance": 0.21219
}

Semantic roles & 50–950 ramp

primary
#5F8A52
secondary
#A58AAE
accent
#66C2AD
background
#F8FAF8
surface
#F0F4EF
border
#CBCECA
text
#0C100A
muted
#7D7F7C

Preview Lab

Preview with #5F8A52

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

Preview Lab → · Contrast checker → · Palette generator →

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