#2F7E20#2F7E20

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

Color values

HEX#2F7E20
RGBrgb(47, 126, 32)
HSLhsl(110, 59%, 31%)
HSVhsv(110, 75%, 49%)
CMYKcmyk(62.7%, 0%, 74.6%, 50.6%)
CIE-LABlab(46.48, -42.34, 41.72)
CIE-LCHlch(46.48, 59.44, 135.42°)
OKLaboklab(52.47% -0.1159 0.0946)
OKLCHoklch(52.47% 0.15 140.8)
XYZxyz(8.8934, 15.6295, 3.9143)
Luminance0.1563 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E20 #6F207E
analogous
#5E7E20 #2F7E20 #207E40
triadic
#2F7E20 #202F7E #7E202F
tetradic
#2F7E20 #205E7E #6F207E #7E4020
square
#2F7E20 #205E7E #6F207E #7E4020
split-complementary
#2F7E20 #40207E #7E205E
monochromatic
#0B1C07 #1D4D14 #2F7E20 #41AF2C #5ED048

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F7E20#FFFFFF#000000##FFFFFF
##2F7E201.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)
#817210
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#237A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7e20;
/* rgb */ color: rgb(47, 126, 32);
/* oklch */ color: oklch(52.5% 0.150 140.8);
Tailwind
colors: {
  custom: {
    50: '#72a462',
    500: '#2f7e20',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e20;
$custom-light: #72a462;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e20",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 32
  },
  "hsl": {
    "h": 110.426,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52466,
    "c": 0.14956,
    "h": 140.8
  },
  "luminance": 0.1563
}

Semantic roles & 50–950 ramp

primary
#2F7E20
secondary
#A049B1
accent
#45E3CA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #2F7E20

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

Preview Lab → · Contrast checker → · Palette generator →

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