#2FA228#2FA228

#2FA228 is a light, vivid green. Relative luminance 0.266; OKLCH L 62.5% C 0.188 H 142.2°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#2FA228
RGBrgb(47, 162, 40)
HSLhsl(117, 60%, 40%)
HSVhsv(117, 75%, 64%)
CMYKcmyk(71%, 0%, 75.3%, 36.5%)
CIE-LABlab(58.60, -54.54, 50.95)
CIE-LCHlch(58.60, 74.63, 136.95°)
OKLaboklab(62.52% -0.1484 0.1149)
OKLCHoklch(62.52% 0.188 142.2)
XYZxyz(14.4748, 26.5966, 6.3779)
Luminance0.2660 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2FA228 #9B28A2
analogous
#6CA228 #2FA228 #28A25E
triadic
#2FA228 #282FA2 #A2282F
tetradic
#2FA228 #286CA2 #9B28A2 #A25E28
square
#2FA228 #286CA2 #9B28A2 #A25E28
split-complementary
#2FA228 #5E28A2 #A2286C
monochromatic
#134010 #21711C #2FA228 #42CE39 #71DA6A

Accessibility & contrast

On white

3.32
#2FA228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#2FA228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2FA228
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2FA228#FFFFFF#000000##000000
##2FA2281.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A6920F
Deuteranopia (green-blind)
#998935
Tritanopia (blue-blind)
#0D9D8B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #2fa228;
/* rgb */ color: rgb(47, 162, 40);
/* oklch */ color: oklch(62.5% 0.188 142.2);
Tailwind
colors: {
  custom: {
    50: '#79bf6a',
    500: '#2fa228',
    950: '#000000',
  },
}
SCSS
$custom: #2fa228;
$custom-light: #79bf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#2fa228",
  "rgb": {
    "r": 47,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 116.557,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.62518,
    "c": 0.18772,
    "h": 142.2
  },
  "luminance": 0.26598
}

Semantic roles & 50–950 ramp

primary
#2FA228
secondary
#BB65C1
accent
#44E4DA
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0A1207
muted
#7C817A

Preview Lab

Preview with #2FA228

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

Preview Lab → · Contrast checker → · Palette generator →

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