#2F8F17#2F8F17

#2F8F17 is a mid, vivid green. Relative luminance 0.203; OKLCH L 57.2% C 0.175 H 140.5°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#2F8F17
RGBrgb(47, 143, 23)
HSLhsl(108, 72%, 33%)
HSVhsv(108, 84%, 56%)
CMYKcmyk(67.1%, 0%, 83.9%, 43.9%)
CIE-LABlab(52.19, -49.15, 50.29)
CIE-LCHlch(52.19, 70.32, 134.34°)
OKLaboklab(57.17% -0.1347 0.1112)
OKLCHoklch(57.17% 0.175 140.5)
XYZxyz(11.1489, 20.3100, 4.1431)
Luminance0.2031 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8F17 #77178F
analogous
#6B8F17 #2F8F17 #178F3B
triadic
#2F8F17 #172F8F #8F172F
tetradic
#2F8F17 #176B8F #77178F #8F3B17
square
#2F8F17 #176B8F #77178F #8F3B17
split-complementary
#2F8F17 #3B178F #8F176B
monochromatic
#0C2606 #1E5A0F #2F8F17 #40C41F #60E040

Accessibility & contrast

On white

4.15
#2F8F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#2F8F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8F17
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8F17#FFFFFF#000000##000000
##2F8F171.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#887A26
Tritanopia (blue-blind)
#1E8A79
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #2f8f17;
/* rgb */ color: rgb(47, 143, 23);
/* oklch */ color: oklch(57.2% 0.175 140.5);
Tailwind
colors: {
  custom: {
    50: '#76b160',
    500: '#2f8f17',
    950: '#000000',
  },
}
SCSS
$custom: #2f8f17;
$custom-light: #76b160;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8f17",
  "rgb": {
    "r": 47,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 108,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57169,
    "c": 0.17465,
    "h": 140.5
  },
  "luminance": 0.20311
}

Semantic roles & 50–950 ramp

primary
#2F8F17
secondary
#A741C1
accent
#39EFCB
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1105
muted
#7C807A

Preview Lab

Preview with #2F8F17

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

Preview Lab → · Contrast checker → · Palette generator →

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