#2F7F21#2F7F21

#2F7F21 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.150 H 140.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#2F7F21
RGBrgb(47, 127, 33)
HSLhsl(111, 59%, 31%)
HSVhsv(111, 74%, 50%)
CMYKcmyk(63%, 0%, 74%, 50.2%)
CIE-LABlab(46.83, -42.63, 41.68)
CIE-LCHlch(46.83, 59.62, 135.65°)
OKLaboklab(52.76% -0.1166 0.0946)
OKLCHoklch(52.76% 0.15 140.9)
XYZxyz(9.0357, 15.8920, 4.0299)
Luminance0.1589 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F21 #71217F
analogous
#5E7F21 #2F7F21 #217F42
triadic
#2F7F21 #212F7F #7F212F
tetradic
#2F7F21 #215E7F #71217F #7F4221
square
#2F7F21 #215E7F #71217F #7F4221
split-complementary
#2F7F21 #42217F #7F215E
monochromatic
#0B1E08 #1D4E14 #2F7F21 #41B02E #5ED04A

Accessibility & contrast

On white

5.03
#2F7F21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#2F7F21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7F21
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7F21#FFFFFF#000000##FFFFFF
##2F7F211.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827311
Deuteranopia (green-blind)
#796C2A
Tritanopia (blue-blind)
#237B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7f21;
/* rgb */ color: rgb(47, 127, 33);
/* oklch */ color: oklch(52.8% 0.150 140.9);
Tailwind
colors: {
  custom: {
    50: '#72a562',
    500: '#2f7f21',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f21;
$custom-light: #72a562;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f21",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 111.064,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52756,
    "c": 0.15016,
    "h": 140.9
  },
  "luminance": 0.15893
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F7F21

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

Preview Lab → · Contrast checker → · Palette generator →

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