#2F7F22#2F7F22

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

Color values

HEX#2F7F22
RGBrgb(47, 127, 34)
HSLhsl(112, 58%, 32%)
HSVhsv(112, 73%, 50%)
CMYKcmyk(63%, 0%, 73.2%, 50.2%)
CIE-LABlab(46.84, -42.54, 41.28)
CIE-LCHlch(46.84, 59.28, 135.86°)
OKLaboklab(52.76% -0.1163 0.0939)
OKLCHoklch(52.76% 0.15 141.1)
XYZxyz(9.0499, 15.8977, 4.1047)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F22 #72227F
analogous
#5E7F22 #2F7F22 #227F44
triadic
#2F7F22 #222F7F #7F222F
tetradic
#2F7F22 #225E7F #72227F #7F4422
square
#2F7F22 #225E7F #72227F #7F4422
split-complementary
#2F7F22 #44227F #7F225E
monochromatic
#0B1E08 #1D4F15 #2F7F22 #41AF2F #5FCF4C

Accessibility & contrast

On white

5.02
#2F7F22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F7F22
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7F22#FFFFFF#000000##FFFFFF
##2F7F221.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827313
Deuteranopia (green-blind)
#786D2B
Tritanopia (blue-blind)
#237B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7f22;
/* rgb */ color: rgb(47, 127, 34);
/* oklch */ color: oklch(52.8% 0.149 141.1);
Tailwind
colors: {
  custom: {
    50: '#72a563',
    500: '#2f7f22',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f22;
$custom-light: #72a563;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f22",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 111.613,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52764,
    "c": 0.1495,
    "h": 141.1
  },
  "luminance": 0.15899
}

Semantic roles & 50–950 ramp

primary
#2F7F22
secondary
#A34BB2
accent
#47E1CB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #2F7F22

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

Preview Lab → · Contrast checker → · Palette generator →

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