#5F8D2E#5F8D2E

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

Color values

HEX#5F8D2E
RGBrgb(95, 141, 46)
HSLhsl(89, 51%, 37%)
HSVhsv(89, 67%, 55%)
CMYKcmyk(32.6%, 0%, 67.4%, 44.7%)
CIE-LABlab(53.69, -31.75, 44.07)
CIE-LCHlch(53.69, 54.32, 125.77°)
OKLaboklab(59% -0.0893 0.1008)
OKLCHoklch(59% 0.135 131.5)
XYZxyz(14.7372, 21.6794, 5.9923)
Luminance0.2168 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8D2E #5C2E8D
analogous
#8D8C2E #5F8D2E #2F8D2E
triadic
#5F8D2E #2E5F8D #8D2E5F
tetradic
#5F8D2E #2E8D8C #5C2E8D #8D2E2F
square
#5F8D2E #2E8D8C #5C2E8D #8D2E2F
split-complementary
#5F8D2E #2E2F8D #8C2E8D
monochromatic
#213110 #405F1F #5F8D2E #7EBB3D #9CCE68

Accessibility & contrast

On white

3.94
#5F8D2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8D2E#FFFFFF#000000##000000
##5F8D2E1.003.945.345.34
#FFFFFF3.941.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#938321
Deuteranopia (green-blind)
#8D7F36
Tritanopia (blue-blind)
#61877A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f8d2e;
/* rgb */ color: rgb(95, 141, 46);
/* oklch */ color: oklch(59.0% 0.135 131.5);
Tailwind
colors: {
  custom: {
    50: '#90ae6c',
    500: '#5f8d2e',
    950: '#000000',
  },
}
SCSS
$custom: #5f8d2e;
$custom-light: #90ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8d2e",
  "rgb": {
    "r": 95,
    "g": 141,
    "b": 46
  },
  "hsl": {
    "h": 89.053,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.58997,
    "c": 0.13468,
    "h": 131.5
  },
  "luminance": 0.2168
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F8D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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