#5F8A32#5F8A32

#5F8A32 is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.3% C 0.127 H 131.4°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5F8A32
RGBrgb(95, 138, 50)
HSLhsl(89, 47%, 37%)
HSVhsv(89, 64%, 54%)
CMYKcmyk(31.2%, 0%, 63.8%, 45.9%)
CIE-LABlab(52.77, -29.99, 41.30)
CIE-LCHlch(52.77, 51.04, 125.99°)
OKLaboklab(58.27% -0.0841 0.0955)
OKLCHoklch(58.27% 0.127 131.4)
XYZxyz(14.3834, 20.8397, 6.2816)
Luminance0.2084 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A32 #5D328A
analogous
#8A8932 #5F8A32 #338A32
triadic
#5F8A32 #325F8A #8A325F
tetradic
#5F8A32 #328A89 #5D328A #8A3233
square
#5F8A32 #328A89 #5D328A #8A3233
split-complementary
#5F8A32 #32338A #89328A
monochromatic
#213011 #405D22 #5F8A32 #7EB742 #9CCA6C

Accessibility & contrast

On white

4.06
#5F8A32 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#5F8A32 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8A32
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8A32#FFFFFF#000000##000000
##5F8A321.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#908028
Deuteranopia (green-blind)
#8A7D39
Tritanopia (blue-blind)
#618477
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a32;
/* rgb */ color: rgb(95, 138, 50);
/* oklch */ color: oklch(58.3% 0.127 131.4);
Tailwind
colors: {
  custom: {
    50: '#8fac6e',
    500: '#5f8a32',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a32;
$custom-light: #8fac6e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a32",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 50
  },
  "hsl": {
    "h": 89.318,
    "s": 46.809,
    "l": 36.863
  },
  "oklch": {
    "l": 0.58268,
    "c": 0.12725,
    "h": 131.4
  },
  "luminance": 0.2084
}

Semantic roles & 50–950 ramp

primary
#5F8A32
secondary
#8B66B2
accent
#51D692
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5F8A32

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

Preview Lab → · Contrast checker → · Palette generator →

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