#5F8B2A#5F8B2A

#5F8B2A is a mid, vivid yellow-green. Relative luminance 0.211; OKLCH L 58.4% C 0.135 H 130.7°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#5F8B2A
RGBrgb(95, 139, 42)
HSLhsl(87, 54%, 35%)
HSVhsv(87, 70%, 55%)
CMYKcmyk(31.7%, 0%, 69.8%, 45.5%)
CIE-LABlab(53.02, -31.14, 45.07)
CIE-LCHlch(53.02, 54.78, 124.64°)
OKLaboklab(58.45% -0.088 0.1024)
OKLCHoklch(58.45% 0.135 130.7)
XYZxyz(14.3697, 21.0648, 5.4989)
Luminance0.2107 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8B2A #562A8B
analogous
#8B862A #5F8B2A #2F8B2A
triadic
#5F8B2A #2A5F8B #8B2A5F
tetradic
#5F8B2A #2A8B86 #562A8B #8B2A2F
square
#5F8B2A #2A8B86 #562A8B #8B2A2F
split-complementary
#5F8B2A #2A2F8B #862A8B
monochromatic
#1F2D0E #3F5C1C #5F8B2A #7FBA38 #9DCF60

Accessibility & contrast

On white

4.03
#5F8B2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#5F8B2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8B2A
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8B2A#FFFFFF#000000##000000
##5F8B2A1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#91811C
Deuteranopia (green-blind)
#8B7D32
Tritanopia (blue-blind)
#618577
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5f8b2a;
/* rgb */ color: rgb(95, 139, 42);
/* oklch */ color: oklch(58.4% 0.135 130.7);
Tailwind
colors: {
  custom: {
    50: '#90ad69',
    500: '#5f8b2a',
    950: '#000000',
  },
}
SCSS
$custom: #5f8b2a;
$custom-light: #90ad69;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8b2a",
  "rgb": {
    "r": 95,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 87.216,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.58446,
    "c": 0.13497,
    "h": 130.7
  },
  "luminance": 0.21065
}

Semantic roles & 50–950 ramp

primary
#5F8B2A
secondary
#845CB5
accent
#4BDD8D
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5F8B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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