#2F8E17#2F8E17

#2F8E17 is a mid, vivid green. Relative luminance 0.200; OKLCH L 56.9% C 0.174 H 140.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#2F8E17
RGBrgb(47, 142, 23)
HSLhsl(108, 72%, 32%)
HSVhsv(108, 84%, 56%)
CMYKcmyk(66.9%, 0%, 83.8%, 44.3%)
CIE-LABlab(51.85, -48.80, 49.98)
CIE-LCHlch(51.85, 69.85, 134.31°)
OKLaboklab(56.89% -0.1338 0.1105)
OKLCHoklch(56.89% 0.174 140.4)
XYZxyz(10.9994, 20.0111, 4.0933)
Luminance0.2001 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8E17 #76178E
analogous
#6B8E17 #2F8E17 #178E3A
triadic
#2F8E17 #172F8E #8E172F
tetradic
#2F8E17 #176B8E #76178E #8E3A17
square
#2F8E17 #176B8E #76178E #8E3A17
split-complementary
#2F8E17 #3A178E #8E176B
monochromatic
#0C2506 #1E590E #2F8E17 #40C320 #60E03F

Accessibility & contrast

On white

4.20
#2F8E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#2F8E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8E17
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8E17#FFFFFF#000000##000000
##2F8E171.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#1F8979
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #2f8e17;
/* rgb */ color: rgb(47, 142, 23);
/* oklch */ color: oklch(56.9% 0.174 140.4);
Tailwind
colors: {
  custom: {
    50: '#76b060',
    500: '#2f8e17',
    950: '#000000',
  },
}
SCSS
$custom: #2f8e17;
$custom-light: #76b060;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8e17",
  "rgb": {
    "r": 47,
    "g": 142,
    "b": 23
  },
  "hsl": {
    "h": 107.899,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5689,
    "c": 0.17351,
    "h": 140.4
  },
  "luminance": 0.20012
}

Semantic roles & 50–950 ramp

primary
#2F8E17
secondary
#A740C0
accent
#39EFCA
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1105
muted
#7C807A

Preview Lab

Preview with #2F8E17

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

Preview Lab → · Contrast checker → · Palette generator →

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