#2F8E31#2F8E31

#2F8E31 is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.1% C 0.158 H 143.5°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#2F8E31
RGBrgb(47, 142, 49)
HSLhsl(121, 50%, 37%)
HSVhsv(121, 67%, 56%)
CMYKcmyk(66.9%, 0%, 65.5%, 44.3%)
CIE-LABlab(52.03, -46.66, 40.36)
CIE-LCHlch(52.03, 61.69, 139.14°)
OKLaboklab(57.1% -0.1266 0.0938)
OKLCHoklch(57.1% 0.158 143.5)
XYZxyz(11.3990, 20.1709, 6.1978)
Luminance0.2017 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8E31 #8E2F8C
analogous
#5D8E2F #2F8E31 #2F8E61
triadic
#2F8E31 #312F8E #8E312F
tetradic
#2F8E31 #2F5D8E #8E2F8C #8E612F
square
#2F8E31 #2F5D8E #8E2F8C #8E612F
split-complementary
#2F8E31 #612F8E #8E2F5D
monochromatic
#113211 #206021 #2F8E31 #3EBC41 #6ACE6C

Accessibility & contrast

On white

4.17
#2F8E31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#2F8E31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8E31
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8E31#FFFFFF#000000##000000
##2F8E311.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#918126
Deuteranopia (green-blind)
#857939
Tritanopia (blue-blind)
#198A7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #2f8e31;
/* rgb */ color: rgb(47, 142, 49);
/* oklch */ color: oklch(57.1% 0.158 143.5);
Tailwind
colors: {
  custom: {
    50: '#74b06d',
    500: '#2f8e31',
    950: '#000000',
  },
}
SCSS
$custom: #2f8e31;
$custom-light: #74b06d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8e31",
  "rgb": {
    "r": 47,
    "g": 142,
    "b": 49
  },
  "hsl": {
    "h": 121.263,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.57097,
    "c": 0.15758,
    "h": 143.5
  },
  "luminance": 0.20172
}

Semantic roles & 50–950 ramp

primary
#2F8E31
secondary
#B564B3
accent
#4ED7DA
background
#F7FAF6
surface
#EDF5EC
border
#C8CFC7
text
#091107
muted
#7B807A

Preview Lab

Preview with #2F8E31

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

Preview Lab → · Contrast checker → · Palette generator →

#2F8E31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva