#2FA842#2FA842

#2FA842 is a light, vivid green. Relative luminance 0.290; OKLCH L 64.4% C 0.177 H 145.6°. Best body text is #000000 at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#2FA842
RGBrgb(47, 168, 66)
HSLhsl(129, 56%, 42%)
HSVhsv(129, 72%, 66%)
CMYKcmyk(72%, 0%, 60.7%, 34.1%)
CIE-LABlab(60.78, -53.98, 42.45)
CIE-LCHlch(60.78, 68.67, 141.82°)
OKLaboklab(64.4% -0.1457 0.1)
OKLCHoklch(64.4% 0.177 145.6)
XYZxyz(16.1572, 29.0011, 9.8995)
Luminance0.2900 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2FA842 #A82F95
analogous
#59A82F #2FA842 #2FA87E
triadic
#2FA842 #422FA8 #A8422F
tetradic
#2FA842 #2F59A8 #A82F95 #A87E2F
square
#2FA842 #2F59A8 #A82F95 #A87E2F
split-complementary
#2FA842 #7E2FA8 #A82F59
monochromatic
#14481C #22782F #2FA842 #48CC5D #78D987

Accessibility & contrast

On white

3.09
#2FA842 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.80
#2FA842 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2FA842
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2FA842#FFFFFF#000000##000000
##2FA8421.003.096.806.80
#FFFFFF3.091.0021.0021.00
#0000006.8021.001.001.00
##0000006.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9937
Deuteranopia (green-blind)
#9D8F4A
Tritanopia (blue-blind)
#00A492
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #2fa842;
/* rgb */ color: rgb(47, 168, 66);
/* oklch */ color: oklch(64.4% 0.177 145.6);
Tailwind
colors: {
  custom: {
    50: '#79c37a',
    500: '#2fa842',
    950: '#000000',
  },
}
SCSS
$custom: #2fa842;
$custom-light: #79c37a;
$custom-dark: #000000;
JSON
{
  "hex": "#2fa842",
  "rgb": {
    "r": 47,
    "g": 168,
    "b": 66
  },
  "hsl": {
    "h": 129.421,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.64398,
    "c": 0.1767,
    "h": 145.6
  },
  "luminance": 0.29003
}

Semantic roles & 50–950 ramp

primary
#2FA842
secondary
#C171B5
accent
#48C8E0
background
#F8FCF7
surface
#EFF8EE
border
#CAD1C9
text
#0A1309
muted
#7C827B

Preview Lab

Preview with #2FA842

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

Preview Lab → · Contrast checker → · Palette generator →

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