#5F8A34#5F8A34

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

Color values

HEX#5F8A34
RGBrgb(95, 138, 52)
HSLhsl(90, 45%, 37%)
HSVhsv(90, 62%, 54%)
CMYKcmyk(31.2%, 0%, 62.3%, 45.9%)
CIE-LABlab(52.79, -29.80, 40.39)
CIE-LCHlch(52.79, 50.19, 126.42°)
OKLaboklab(58.29% -0.0834 0.0938)
OKLCHoklch(58.29% 0.126 131.7)
XYZxyz(14.4275, 20.8573, 6.5139)
Luminance0.2086 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A34 #5F348A
analogous
#8A8A34 #5F8A34 #348A34
triadic
#5F8A34 #345F8A #8A345F
tetradic
#5F8A34 #348A8A #5F348A #8A3434
square
#5F8A34 #348A8A #5F348A #8A3434
split-complementary
#5F8A34 #34348A #8A348A
monochromatic
#223113 #405E23 #5F8A34 #7EB645 #9CC96F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8A34#FFFFFF#000000##000000
##5F8A341.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)
#90802A
Deuteranopia (green-blind)
#8A7D3A
Tritanopia (blue-blind)
#608578
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a34;
/* rgb */ color: rgb(95, 138, 52);
/* oklch */ color: oklch(58.3% 0.126 131.7);
Tailwind
colors: {
  custom: {
    50: '#8fac6f',
    500: '#5f8a34',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a34;
$custom-light: #8fac6f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a34",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 52
  },
  "hsl": {
    "h": 90,
    "s": 45.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.5829,
    "c": 0.12552,
    "h": 131.7
  },
  "luminance": 0.20858
}

Semantic roles & 50–950 ramp

primary
#5F8A34
secondary
#8D69B1
accent
#53D594
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5F8A34

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

Preview Lab → · Contrast checker → · Palette generator →

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