#2F7C22#2F7C22

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

Color values

HEX#2F7C22
RGBrgb(47, 124, 34)
HSLhsl(111, 57%, 31%)
HSVhsv(111, 73%, 49%)
CMYKcmyk(62.1%, 0%, 72.6%, 51.4%)
CIE-LABlab(45.82, -41.39, 40.22)
CIE-LCHlch(45.82, 57.72, 135.82°)
OKLaboklab(51.92% -0.1132 0.0917)
OKLCHoklch(51.92% 0.146 141)
XYZxyz(8.6683, 15.1343, 3.9775)
Luminance0.1514 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7C22 #6F227C
analogous
#5C7C22 #2F7C22 #227C42
triadic
#2F7C22 #222F7C #7C222F
tetradic
#2F7C22 #225C7C #6F227C #7C4222
square
#2F7C22 #225C7C #6F227C #7C4222
split-complementary
#2F7C22 #42227C #7C225C
monochromatic
#0B1C08 #1D4C15 #2F7C22 #41AC2F #5ECE4B

Accessibility & contrast

On white

5.21
#2F7C22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#2F7C22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7C22
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7C22#FFFFFF#000000##FFFFFF
##2F7C221.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7014
Deuteranopia (green-blind)
#766A2B
Tritanopia (blue-blind)
#24786A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7c22;
/* rgb */ color: rgb(47, 124, 34);
/* oklch */ color: oklch(51.9% 0.146 141.0);
Tailwind
colors: {
  custom: {
    50: '#71a363',
    500: '#2f7c22',
    950: '#000000',
  },
}
SCSS
$custom: #2f7c22;
$custom-light: #71a363;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7c22",
  "rgb": {
    "r": 47,
    "g": 124,
    "b": 34
  },
  "hsl": {
    "h": 111.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51919,
    "c": 0.14568,
    "h": 141
  },
  "luminance": 0.15135
}

Semantic roles & 50–950 ramp

primary
#2F7C22
secondary
#A04BAF
accent
#48E0CA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2F7C22

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

Preview Lab → · Contrast checker → · Palette generator →

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