#5F8A2D#5F8A2D

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

Color values

HEX#5F8A2D
RGBrgb(95, 138, 45)
HSLhsl(88, 51%, 36%)
HSVhsv(88, 67%, 54%)
CMYKcmyk(31.2%, 0%, 67.4%, 45.9%)
CIE-LABlab(52.73, -30.43, 43.49)
CIE-LCHlch(52.73, 53.08, 124.98°)
OKLaboklab(58.22% -0.0858 0.0994)
OKLCHoklch(58.22% 0.131 130.8)
XYZxyz(14.2813, 20.7989, 5.7443)
Luminance0.2080 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A2D #582D8A
analogous
#8A862D #5F8A2D #308A2D
triadic
#5F8A2D #2D5F8A #8A2D5F
tetradic
#5F8A2D #2D8A86 #582D8A #8A2D30
square
#5F8A2D #2D8A86 #582D8A #8A2D30
split-complementary
#5F8A2D #2D308A #862D8A
monochromatic
#1F2E0F #3F5C1E #5F8A2D #7FB83C #9DCD65

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8A2D#FFFFFF#000000##000000
##5F8A2D1.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)
#908021
Deuteranopia (green-blind)
#8A7D35
Tritanopia (blue-blind)
#618477
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a2d;
/* rgb */ color: rgb(95, 138, 45);
/* oklch */ color: oklch(58.2% 0.131 130.8);
Tailwind
colors: {
  custom: {
    50: '#90ac6b',
    500: '#5f8a2d',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a2d;
$custom-light: #90ac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a2d",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 87.742,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.58217,
    "c": 0.13132,
    "h": 130.8
  },
  "luminance": 0.20799
}

Semantic roles & 50–950 ramp

primary
#5F8A2D
secondary
#8660B3
accent
#4DDA8F
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5F8A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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