#5F8A2A#5F8A2A

#5F8A2A is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.2% C 0.134 H 130.5°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5F8A2A
RGBrgb(95, 138, 42)
HSLhsl(87, 53%, 35%)
HSVhsv(87, 70%, 54%)
CMYKcmyk(31.2%, 0%, 69.6%, 45.9%)
CIE-LABlab(52.70, -30.67, 44.74)
CIE-LCHlch(52.70, 54.25, 124.43°)
OKLaboklab(58.19% -0.0867 0.1017)
OKLCHoklch(58.19% 0.134 130.5)
XYZxyz(14.2256, 20.7766, 5.4508)
Luminance0.2078 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A2A #552A8A
analogous
#8A852A #5F8A2A #2F8A2A
triadic
#5F8A2A #2A5F8A #8A2A5F
tetradic
#5F8A2A #2A8A85 #552A8A #8A2A2F
square
#5F8A2A #2A8A85 #552A8A #8A2A2F
split-complementary
#5F8A2A #2A2F8A #852A8A
monochromatic
#1E2C0D #3F5B1C #5F8A2A #7FB938 #9DCF60

Accessibility & contrast

On white

4.07
#5F8A2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#5F8A2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8A2A
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8A2A#FFFFFF#000000##000000
##5F8A2A1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#90801C
Deuteranopia (green-blind)
#8A7D32
Tritanopia (blue-blind)
#618477
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a2a;
/* rgb */ color: rgb(95, 138, 42);
/* oklch */ color: oklch(58.2% 0.134 130.5);
Tailwind
colors: {
  custom: {
    50: '#90ac69',
    500: '#5f8a2a',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a2a;
$custom-light: #90ac69;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a2a",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 86.875,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58189,
    "c": 0.1336,
    "h": 130.5
  },
  "luminance": 0.20777
}

Semantic roles & 50–950 ramp

primary
#5F8A2A
secondary
#835BB4
accent
#4BDD8C
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5F8A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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