#2F8020#2F8020

#2F8020 is a mid, vivid green. Relative luminance 0.161; OKLCH L 53.0% C 0.152 H 140.8°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#2F8020
RGBrgb(47, 128, 32)
HSLhsl(111, 60%, 31%)
HSVhsv(111, 75%, 50%)
CMYKcmyk(63.3%, 0%, 75%, 49.8%)
CIE-LABlab(47.17, -43.10, 42.42)
CIE-LCHlch(47.17, 60.47, 135.45°)
OKLaboklab(53.03% -0.1179 0.096)
OKLCHoklch(53.03% 0.152 140.8)
XYZxyz(9.1517, 16.1461, 4.0004)
Luminance0.1615 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8020 #712080
analogous
#5F8020 #2F8020 #208041
triadic
#2F8020 #202F80 #80202F
tetradic
#2F8020 #205F80 #712080 #804120
square
#2F8020 #205F80 #712080 #804120
split-complementary
#2F8020 #412080 #80205F
monochromatic
#0B1E08 #1D4F14 #2F8020 #41B12C #5ED149

Accessibility & contrast

On white

4.97
#2F8020 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#2F8020 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F8020
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8020#FFFFFF#000000##FFFFFF
##2F80201.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83740F
Deuteranopia (green-blind)
#7A6D2A
Tritanopia (blue-blind)
#237C6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2f8020;
/* rgb */ color: rgb(47, 128, 32);
/* oklch */ color: oklch(53.0% 0.152 140.8);
Tailwind
colors: {
  custom: {
    50: '#72a662',
    500: '#2f8020',
    950: '#000000',
  },
}
SCSS
$custom: #2f8020;
$custom-light: #72a662;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8020",
  "rgb": {
    "r": 47,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 110.625,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53029,
    "c": 0.15206,
    "h": 140.8
  },
  "luminance": 0.16147
}

Semantic roles & 50–950 ramp

primary
#2F8020
secondary
#A249B3
accent
#45E3CA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #2F8020

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

Preview Lab → · Contrast checker → · Palette generator →

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