#2F7C20#2F7C20

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

Color values

HEX#2F7C20
RGBrgb(47, 124, 32)
HSLhsl(110, 59%, 31%)
HSVhsv(110, 74%, 49%)
CMYKcmyk(62.1%, 0%, 74.2%, 51.4%)
CIE-LABlab(45.80, -41.57, 41.03)
CIE-LCHlch(45.80, 58.41, 135.38°)
OKLaboklab(51.9% -0.1138 0.0931)
OKLCHoklch(51.9% 0.147 140.7)
XYZxyz(8.6402, 15.1231, 3.8300)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7C20 #6D207C
analogous
#5D7C20 #2F7C20 #207C3F
triadic
#2F7C20 #202F7C #7C202F
tetradic
#2F7C20 #205D7C #6D207C #7C3F20
square
#2F7C20 #205D7C #6D207C #7C3F20
split-complementary
#2F7C20 #3F207C #7C205D
monochromatic
#0A1B07 #1D4B13 #2F7C20 #41AD2D #5DCF47

Accessibility & contrast

On white

5.22
#2F7C20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2F7C20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7C20
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7C20#FFFFFF#000000##FFFFFF
##2F7C201.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f7c20;
/* rgb */ color: rgb(47, 124, 32);
/* oklch */ color: oklch(51.9% 0.147 140.7);
Tailwind
colors: {
  custom: {
    50: '#71a362',
    500: '#2f7c20',
    950: '#000000',
  },
}
SCSS
$custom: #2f7c20;
$custom-light: #71a362;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7c20",
  "rgb": {
    "r": 47,
    "g": 124,
    "b": 32
  },
  "hsl": {
    "h": 110.217,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51902,
    "c": 0.14704,
    "h": 140.7
  },
  "luminance": 0.15124
}

Semantic roles & 50–950 ramp

primary
#2F7C20
secondary
#9E49AF
accent
#46E2C9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2F7C20

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

Preview Lab → · Contrast checker → · Palette generator →

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