#2F8E21#2F8E21

#2F8E21 is a mid, vivid green. Relative luminance 0.201; OKLCH L 57.0% C 0.168 H 141.3°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#2F8E21
RGBrgb(47, 142, 33)
HSLhsl(112, 62%, 34%)
HSVhsv(112, 77%, 56%)
CMYKcmyk(66.9%, 0%, 76.8%, 44.3%)
CIE-LABlab(51.90, -48.15, 46.80)
CIE-LCHlch(51.90, 67.14, 135.82°)
OKLaboklab(56.95% -0.1315 0.1053)
OKLCHoklch(56.95% 0.168 141.3)
XYZxyz(11.1192, 20.0590, 4.7243)
Luminance0.2006 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8E21 #80218E
analogous
#668E21 #2F8E21 #218E4A
triadic
#2F8E21 #212F8E #8E212F
tetradic
#2F8E21 #21668E #80218E #8E4A21
square
#2F8E21 #21668E #80218E #8E4A21
split-complementary
#2F8E21 #4A218E #8E2166
monochromatic
#0E2B0A #1F5C15 #2F8E21 #3FC02D #63D752

Accessibility & contrast

On white

4.19
#2F8E21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#2F8E21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8E21
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8E21#FFFFFF#000000##000000
##2F8E211.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928009
Deuteranopia (green-blind)
#86792D
Tritanopia (blue-blind)
#1D8979
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #2f8e21;
/* rgb */ color: rgb(47, 142, 33);
/* oklch */ color: oklch(57.0% 0.168 141.3);
Tailwind
colors: {
  custom: {
    50: '#75b064',
    500: '#2f8e21',
    950: '#000000',
  },
}
SCSS
$custom: #2f8e21;
$custom-light: #75b064;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8e21",
  "rgb": {
    "r": 47,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 112.294,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.56953,
    "c": 0.16848,
    "h": 141.3
  },
  "luminance": 0.2006
}

Semantic roles & 50–950 ramp

primary
#2F8E21
secondary
#AD50BA
accent
#42E5D0
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091106
muted
#7B807A

Preview Lab

Preview with #2F8E21

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

Preview Lab → · Contrast checker → · Palette generator →

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