#5F8D2F#5F8D2F

#5F8D2F is a mid, vivid yellow-green. Relative luminance 0.217; OKLCH L 59.0% C 0.134 H 131.7°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5F8D2F
RGBrgb(95, 141, 47)
HSLhsl(89, 50%, 37%)
HSVhsv(89, 67%, 55%)
CMYKcmyk(32.6%, 0%, 66.7%, 44.7%)
CIE-LABlab(53.69, -31.67, 43.65)
CIE-LCHlch(53.69, 53.92, 125.96°)
OKLaboklab(59.01% -0.089 0.1)
OKLCHoklch(59.01% 0.134 131.7)
XYZxyz(14.7571, 21.6874, 6.0973)
Luminance0.2169 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8D2F #5D2F8D
analogous
#8D8C2F #5F8D2F #308D2F
triadic
#5F8D2F #2F5F8D #8D2F5F
tetradic
#5F8D2F #2F8D8C #5D2F8D #8D2F30
square
#5F8D2F #2F8D8C #5D2F8D #8D2F30
split-complementary
#5F8D2F #2F308D #8C2F8D
monochromatic
#213110 #405F20 #5F8D2F #7EBB3E #9CCD69

Accessibility & contrast

On white

3.93
#5F8D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#5F8D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8D2F
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8D2F#FFFFFF#000000##000000
##5F8D2F1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#938323
Deuteranopia (green-blind)
#8D7F37
Tritanopia (blue-blind)
#60877A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f8d2f;
/* rgb */ color: rgb(95, 141, 47);
/* oklch */ color: oklch(59.0% 0.134 131.7);
Tailwind
colors: {
  custom: {
    50: '#90ae6c',
    500: '#5f8d2f',
    950: '#000000',
  },
}
SCSS
$custom: #5f8d2f;
$custom-light: #90ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8d2f",
  "rgb": {
    "r": 95,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 89.362,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.59007,
    "c": 0.1339,
    "h": 131.7
  },
  "luminance": 0.21688
}

Semantic roles & 50–950 ramp

primary
#5F8D2F
secondary
#8B64B4
accent
#4EDA92
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5F8D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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