#2F7D21#2F7D21

#2F7D21 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.148 H 140.9°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#2F7D21
RGBrgb(47, 125, 33)
HSLhsl(111, 58%, 31%)
HSVhsv(111, 74%, 49%)
CMYKcmyk(62.4%, 0%, 73.6%, 51%)
CIE-LABlab(46.15, -41.87, 40.98)
CIE-LCHlch(46.15, 58.59, 135.61°)
OKLaboklab(52.19% -0.1145 0.0932)
OKLCHoklch(52.19% 0.148 140.9)
XYZxyz(8.7800, 15.3806, 3.9446)
Luminance0.1538 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7D21 #6F217D
analogous
#5D7D21 #2F7D21 #217D41
triadic
#2F7D21 #212F7D #7D212F
tetradic
#2F7D21 #215D7D #6F217D #7D4121
square
#2F7D21 #215D7D #6F217D #7D4121
split-complementary
#2F7D21 #41217D #7D215D
monochromatic
#0B1C07 #1D4D14 #2F7D21 #41AD2E #5ECF49

Accessibility & contrast

On white

5.15
#2F7D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#2F7D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7D21
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7D21#FFFFFF#000000##FFFFFF
##2F7D211.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807112
Deuteranopia (green-blind)
#776B2A
Tritanopia (blue-blind)
#24796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f7d21;
/* rgb */ color: rgb(47, 125, 33);
/* oklch */ color: oklch(52.2% 0.148 140.9);
Tailwind
colors: {
  custom: {
    50: '#72a362',
    500: '#2f7d21',
    950: '#000000',
  },
}
SCSS
$custom: #2f7d21;
$custom-light: #72a362;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7d21",
  "rgb": {
    "r": 47,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 110.87,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52192,
    "c": 0.14764,
    "h": 140.9
  },
  "luminance": 0.15381
}

Semantic roles & 50–950 ramp

primary
#2F7D21
secondary
#A04AB0
accent
#46E1CA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #2F7D21

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

Preview Lab → · Contrast checker → · Palette generator →

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