#5F8B2F#5F8B2F

#5F8B2F is a mid, vivid yellow-green. Relative luminance 0.211; OKLCH L 58.5% C 0.131 H 131.2°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5F8B2F
RGBrgb(95, 139, 47)
HSLhsl(89, 49%, 36%)
HSVhsv(89, 66%, 55%)
CMYKcmyk(31.7%, 0%, 66.2%, 45.5%)
CIE-LABlab(53.06, -30.73, 42.97)
CIE-LCHlch(53.06, 52.82, 125.57°)
OKLaboklab(58.49% -0.0864 0.0986)
OKLCHoklch(58.49% 0.131 131.2)
XYZxyz(14.4649, 21.1029, 5.9999)
Luminance0.2110 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8B2F #5B2F8B
analogous
#8B892F #5F8B2F #318B2F
triadic
#5F8B2F #2F5F8B #8B2F5F
tetradic
#5F8B2F #2F8B89 #5B2F8B #8B2F31
square
#5F8B2F #2F8B89 #5B2F8B #8B2F31
split-complementary
#5F8B2F #2F318B #892F8B
monochromatic
#203010 #405D20 #5F8B2F #7EB93E #9CCC68

Accessibility & contrast

On white

4.02
#5F8B2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#5F8B2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8B2F
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8B2F#FFFFFF#000000##000000
##5F8B2F1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#918123
Deuteranopia (green-blind)
#8B7E36
Tritanopia (blue-blind)
#618578
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5f8b2f;
/* rgb */ color: rgb(95, 139, 47);
/* oklch */ color: oklch(58.5% 0.131 131.2);
Tailwind
colors: {
  custom: {
    50: '#90ad6c',
    500: '#5f8b2f',
    950: '#000000',
  },
}
SCSS
$custom: #5f8b2f;
$custom-light: #90ad6c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8b2f",
  "rgb": {
    "r": 95,
    "g": 139,
    "b": 47
  },
  "hsl": {
    "h": 88.696,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.58493,
    "c": 0.13113,
    "h": 131.2
  },
  "luminance": 0.21103
}

Semantic roles & 50–950 ramp

primary
#5F8B2F
secondary
#8963B3
accent
#4FD991
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5F8B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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