#2F7E22#2F7E22

#2F7E22 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.5% C 0.148 H 141.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#2F7E22
RGBrgb(47, 126, 34)
HSLhsl(112, 58%, 31%)
HSVhsv(112, 73%, 49%)
CMYKcmyk(62.7%, 0%, 73%, 50.6%)
CIE-LABlab(46.50, -42.16, 40.93)
CIE-LCHlch(46.50, 58.76, 135.85°)
OKLaboklab(52.48% -0.1153 0.0932)
OKLCHoklch(52.48% 0.148 141)
XYZxyz(8.9214, 15.6407, 4.0619)
Luminance0.1564 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E22 #71227E
analogous
#5D7E22 #2F7E22 #227E43
triadic
#2F7E22 #222F7E #7E222F
tetradic
#2F7E22 #225D7E #71227E #7E4322
square
#2F7E22 #225D7E #71227E #7E4322
split-complementary
#2F7E22 #43227E #7E225D
monochromatic
#0B1E08 #1D4E15 #2F7E22 #41AE2F #5ECF4C

Accessibility & contrast

On white

5.09
#2F7E22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#2F7E22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7E22
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7E22#FFFFFF#000000##FFFFFF
##2F7E221.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817213
Deuteranopia (green-blind)
#786C2B
Tritanopia (blue-blind)
#237A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7e22;
/* rgb */ color: rgb(47, 126, 34);
/* oklch */ color: oklch(52.5% 0.148 141.0);
Tailwind
colors: {
  custom: {
    50: '#72a463',
    500: '#2f7e22',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e22;
$custom-light: #72a463;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e22",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 111.522,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52483,
    "c": 0.14824,
    "h": 141
  },
  "luminance": 0.15642
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F7E22

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

Preview Lab → · Contrast checker → · Palette generator →

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