#2F8F20#2F8F20

#2F8F20 is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.2% C 0.170 H 141.2°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#2F8F20
RGBrgb(47, 143, 32)
HSLhsl(112, 63%, 34%)
HSVhsv(112, 78%, 56%)
CMYKcmyk(67.1%, 0%, 77.6%, 43.9%)
CIE-LABlab(52.23, -48.58, 47.48)
CIE-LCHlch(52.23, 67.93, 135.66°)
OKLaboklab(57.22% -0.1327 0.1066)
OKLCHoklch(57.22% 0.17 141.2)
XYZxyz(11.2549, 20.3524, 4.7015)
Luminance0.2035 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8F20 #80208F
analogous
#678F20 #2F8F20 #208F49
triadic
#2F8F20 #202F8F #8F202F
tetradic
#2F8F20 #20678F #80208F #8F4920
square
#2F8F20 #20678F #80208F #8F4920
split-complementary
#2F8F20 #49208F #8F2067
monochromatic
#0E2B0A #1F5D15 #2F8F20 #3FC12B #63D851

Accessibility & contrast

On white

4.14
#2F8F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#2F8F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8F20
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8F20#FFFFFF#000000##000000
##2F8F201.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938106
Deuteranopia (green-blind)
#877A2C
Tritanopia (blue-blind)
#1D8A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #2f8f20;
/* rgb */ color: rgb(47, 143, 32);
/* oklch */ color: oklch(57.2% 0.170 141.2);
Tailwind
colors: {
  custom: {
    50: '#75b164',
    500: '#2f8f20',
    950: '#000000',
  },
}
SCSS
$custom: #2f8f20;
$custom-light: #75b164;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8f20",
  "rgb": {
    "r": 47,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 111.892,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57224,
    "c": 0.17022,
    "h": 141.2
  },
  "luminance": 0.20354
}

Semantic roles & 50–950 ramp

primary
#2F8F20
secondary
#AD4FBB
accent
#41E6D0
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #2F8F20

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

Preview Lab → · Contrast checker → · Palette generator →

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