#5F8A2F#5F8A2F

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

Color values

HEX#5F8A2F
RGBrgb(95, 138, 47)
HSLhsl(88, 49%, 36%)
HSVhsv(88, 66%, 54%)
CMYKcmyk(31.2%, 0%, 65.9%, 45.9%)
CIE-LABlab(52.75, -30.26, 42.62)
CIE-LCHlch(52.75, 52.27, 125.37°)
OKLaboklab(58.24% -0.0851 0.0979)
OKLCHoklch(58.24% 0.13 131)
XYZxyz(14.3207, 20.8146, 5.9519)
Luminance0.2082 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A2F #5A2F8A
analogous
#8A882F #5F8A2F #328A2F
triadic
#5F8A2F #2F5F8A #8A2F5F
tetradic
#5F8A2F #2F8A88 #5A2F8A #8A2F32
square
#5F8A2F #2F8A88 #5A2F8A #8A2F32
split-complementary
#5F8A2F #2F328A #882F8A
monochromatic
#202F10 #405C1F #5F8A2F #7EB83F #9CCC68

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8A2F#FFFFFF#000000##000000
##5F8A2F1.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)
#908024
Deuteranopia (green-blind)
#8A7D36
Tritanopia (blue-blind)
#618477
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a2f;
/* rgb */ color: rgb(95, 138, 47);
/* oklch */ color: oklch(58.2% 0.130 131.0);
Tailwind
colors: {
  custom: {
    50: '#90ac6c',
    500: '#5f8a2f',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a2f;
$custom-light: #90ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a2f",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 88.352,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.58236,
    "c": 0.12973,
    "h": 131
  },
  "luminance": 0.20815
}

Semantic roles & 50–950 ramp

primary
#5F8A2F
secondary
#8862B3
accent
#4FD990
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5F8A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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