#5F8A35#5F8A35

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

Color values

HEX#5F8A35
RGBrgb(95, 138, 53)
HSLhsl(90, 45%, 37%)
HSVhsv(90, 62%, 54%)
CMYKcmyk(31.2%, 0%, 61.6%, 45.9%)
CIE-LABlab(52.80, -29.71, 39.93)
CIE-LCHlch(52.80, 49.77, 126.65°)
OKLaboklab(58.3% -0.0831 0.0929)
OKLCHoklch(58.3% 0.125 131.8)
XYZxyz(14.4502, 20.8664, 6.6337)
Luminance0.2087 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A35 #60358A
analogous
#8A8A35 #5F8A35 #358A35
triadic
#5F8A35 #355F8A #8A355F
tetradic
#5F8A35 #358A8A #60358A #8A3535
square
#5F8A35 #358A8A #60358A #8A3535
split-complementary
#5F8A35 #35358A #8A358A
monochromatic
#223213 #415E24 #5F8A35 #7DB646 #9CC871

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8A35#FFFFFF#000000##000000
##5F8A351.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)
#90802C
Deuteranopia (green-blind)
#8A7D3B
Tritanopia (blue-blind)
#608578
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a35;
/* rgb */ color: rgb(95, 138, 53);
/* oklch */ color: oklch(58.3% 0.125 131.8);
Tailwind
colors: {
  custom: {
    50: '#8fac70',
    500: '#5f8a35',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a35;
$custom-light: #8fac70;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a35",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 53
  },
  "hsl": {
    "h": 90.353,
    "s": 44.503,
    "l": 37.451
  },
  "oklch": {
    "l": 0.58301,
    "c": 0.12464,
    "h": 131.8
  },
  "luminance": 0.20867
}

Semantic roles & 50–950 ramp

primary
#5F8A35
secondary
#8E6AB1
accent
#54D495
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D1008
muted
#7E7F7B

Preview Lab

Preview with #5F8A35

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

Preview Lab → · Contrast checker → · Palette generator →

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