#2F8B21#2F8B21

#2F8B21 is a mid, vivid green. Relative luminance 0.192; OKLCH L 56.1% C 0.165 H 141.3°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#2F8B21
RGBrgb(47, 139, 33)
HSLhsl(112, 62%, 34%)
HSVhsv(112, 76%, 55%)
CMYKcmyk(66.2%, 0%, 76.3%, 45.5%)
CIE-LABlab(50.90, -47.07, 45.79)
CIE-LCHlch(50.90, 65.67, 135.79°)
OKLaboklab(56.12% -0.1286 0.1032)
OKLCHoklch(56.12% 0.165 141.3)
XYZxyz(10.6789, 19.1783, 4.5776)
Luminance0.1918 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8B21 #7D218B
analogous
#648B21 #2F8B21 #218B48
triadic
#2F8B21 #212F8B #8B212F
tetradic
#2F8B21 #21648B #7D218B #8B4821
square
#2F8B21 #21648B #7D218B #8B4821
split-complementary
#2F8B21 #48218B #8B2164
monochromatic
#0E280A #1E5A15 #2F8B21 #40BC2D #62D651

Accessibility & contrast

On white

4.34
#2F8B21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#2F8B21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8B21
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8B21#FFFFFF#000000##000000
##2F8B211.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0B
Deuteranopia (green-blind)
#84762C
Tritanopia (blue-blind)
#1E8777
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2f8b21;
/* rgb */ color: rgb(47, 139, 33);
/* oklch */ color: oklch(56.1% 0.165 141.3);
Tailwind
colors: {
  custom: {
    50: '#75ae64',
    500: '#2f8b21',
    950: '#000000',
  },
}
SCSS
$custom: #2f8b21;
$custom-light: #75ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8b21",
  "rgb": {
    "r": 47,
    "g": 139,
    "b": 33
  },
  "hsl": {
    "h": 112.075,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56117,
    "c": 0.16489,
    "h": 141.3
  },
  "luminance": 0.19179
}

Semantic roles & 50–950 ramp

primary
#2F8B21
secondary
#AB4FB9
accent
#43E5CF
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2F8B21

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

Preview Lab → · Contrast checker → · Palette generator →

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