#2F8021#2F8021

#2F8021 is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.0% C 0.151 H 141.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#2F8021
RGBrgb(47, 128, 33)
HSLhsl(111, 59%, 32%)
HSVhsv(111, 74%, 50%)
CMYKcmyk(63.3%, 0%, 74.2%, 49.8%)
CIE-LABlab(47.17, -43.01, 42.03)
CIE-LCHlch(47.17, 60.14, 135.66°)
OKLaboklab(53.04% -0.1176 0.0954)
OKLCHoklch(53.04% 0.151 141)
XYZxyz(9.1655, 16.1516, 4.0731)
Luminance0.1615 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8021 #722180
analogous
#5F8021 #2F8021 #218043
triadic
#2F8021 #212F80 #80212F
tetradic
#2F8021 #215F80 #722180 #804321
square
#2F8021 #215F80 #722180 #804321
split-complementary
#2F8021 #432180 #80215F
monochromatic
#0B1F08 #1D4F14 #2F8021 #41B12E #5FD14B

Accessibility & contrast

On white

4.96
#2F8021 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F8021
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8021#FFFFFF#000000##FFFFFF
##2F80211.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837411
Deuteranopia (green-blind)
#796D2B
Tritanopia (blue-blind)
#237C6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2f8021;
/* rgb */ color: rgb(47, 128, 33);
/* oklch */ color: oklch(53.0% 0.151 141.0);
Tailwind
colors: {
  custom: {
    50: '#72a663',
    500: '#2f8021',
    950: '#000000',
  },
}
SCSS
$custom: #2f8021;
$custom-light: #72a663;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8021",
  "rgb": {
    "r": 47,
    "g": 128,
    "b": 33
  },
  "hsl": {
    "h": 111.158,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53037,
    "c": 0.15142,
    "h": 141
  },
  "luminance": 0.16152
}

Semantic roles & 50–950 ramp

primary
#2F8021
secondary
#A34AB3
accent
#46E2CB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #2F8021

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

Preview Lab → · Contrast checker → · Palette generator →

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