#2FAB40#2FAB40

#2FAB40 is a light, vivid green. Relative luminance 0.301; OKLCH L 65.2% C 0.182 H 145.1°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#2FAB40
RGBrgb(47, 171, 64)
HSLhsl(128, 57%, 43%)
HSVhsv(128, 73%, 67%)
CMYKcmyk(72.5%, 0%, 62.6%, 32.9%)
CIE-LABlab(61.74, -55.26, 44.46)
CIE-LCHlch(61.74, 70.93, 141.18°)
OKLaboklab(65.18% -0.1493 0.1041)
OKLCHoklch(65.18% 0.182 145.1)
XYZxyz(16.6595, 30.0985, 9.7811)
Luminance0.3010 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2FAB40 #AB2F9A
analogous
#5CAB2F #2FAB40 #2FAB7E
triadic
#2FAB40 #402FAB #AB402F
tetradic
#2FAB40 #2F5CAB #AB2F9A #AB7E2F
square
#2FAB40 #2F5CAB #AB2F9A #AB7E2F
split-complementary
#2FAB40 #7E2FAB #AB2F5C
monochromatic
#154B1C #227B2E #2FAB40 #4ACD5C #7ADA87

Accessibility & contrast

On white

2.99
#2FAB40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.02
#2FAB40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #2FAB40
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2FAB40#FFFFFF#000000##000000
##2FAB401.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9B34
Deuteranopia (green-blind)
#A09149
Tritanopia (blue-blind)
#00A794
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #2fab40;
/* rgb */ color: rgb(47, 171, 64);
/* oklch */ color: oklch(65.2% 0.182 145.1);
Tailwind
colors: {
  custom: {
    50: '#7ac579',
    500: '#2fab40',
    950: '#000000',
  },
}
SCSS
$custom: #2fab40;
$custom-light: #7ac579;
$custom-dark: #000000;
JSON
{
  "hex": "#2fab40",
  "rgb": {
    "r": 47,
    "g": 171,
    "b": 64
  },
  "hsl": {
    "h": 128.226,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.65184,
    "c": 0.18196,
    "h": 145.1
  },
  "luminance": 0.301
}

Semantic roles & 50–950 ramp

primary
#2FAB40
secondary
#C373B8
accent
#48CBE0
background
#F8FCF7
surface
#EFF8EE
border
#CAD1C9
text
#0B1309
muted
#7C827B

Preview Lab

Preview with #2FAB40

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

Preview Lab → · Contrast checker → · Palette generator →

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