#5F8A42#5F8A42

#5F8A42 is a mid, moderate yellow-green. Relative luminance 0.210; OKLCH L 58.5% C 0.112 H 134.1°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5F8A42
RGBrgb(95, 138, 66)
HSLhsl(96, 35%, 40%)
HSVhsv(96, 52%, 54%)
CMYKcmyk(31.2%, 0%, 52.2%, 45.9%)
CIE-LABlab(52.95, -28.27, 33.65)
CIE-LCHlch(52.95, 43.95, 130.03°)
OKLaboklab(58.47% -0.0781 0.0805)
OKLCHoklch(58.47% 0.112 134.1)
XYZxyz(14.7909, 21.0027, 8.4278)
Luminance0.2100 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A42 #6D428A
analogous
#838A42 #5F8A42 #428A49
triadic
#5F8A42 #425F8A #8A425F
tetradic
#5F8A42 #42838A #6D428A #8A4942
square
#5F8A42 #42838A #6D428A #8A4942
split-complementary
#5F8A42 #49428A #8A4283
monochromatic
#26371A #43612E #5F8A42 #7CB059 #9DC483

Accessibility & contrast

On white

4.04
#5F8A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#5F8A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8A42
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8A42#FFFFFF#000000##000000
##5F8A421.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F813C
Deuteranopia (green-blind)
#897D47
Tritanopia (blue-blind)
#5F8579
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a42;
/* rgb */ color: rgb(95, 138, 66);
/* oklch */ color: oklch(58.5% 0.112 134.1);
Tailwind
colors: {
  custom: {
    50: '#8fac78',
    500: '#5f8a42',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a42;
$custom-light: #8fac78;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a42",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 95.833,
    "s": 35.294,
    "l": 40
  },
  "oklch": {
    "l": 0.58471,
    "c": 0.11217,
    "h": 134.1
  },
  "luminance": 0.21003
}

Semantic roles & 50–950 ramp

primary
#5F8A42
secondary
#9979AE
accent
#5CCB9F
background
#F8FAF7
surface
#F0F4ED
border
#CBCEC8
text
#0C1009
muted
#7D7F7B

Preview Lab

Preview with #5F8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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