#2F7F20#2F7F20

#2F7F20 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.7% C 0.151 H 140.8°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#2F7F20
RGBrgb(47, 127, 32)
HSLhsl(111, 60%, 31%)
HSVhsv(111, 75%, 50%)
CMYKcmyk(63%, 0%, 74.8%, 50.2%)
CIE-LABlab(46.83, -42.72, 42.07)
CIE-LCHlch(46.83, 59.96, 135.44°)
OKLaboklab(52.75% -0.1169 0.0953)
OKLCHoklch(52.75% 0.151 140.8)
XYZxyz(9.0219, 15.8865, 3.9572)
Luminance0.1589 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F20 #70207F
analogous
#5E7F20 #2F7F20 #207F40
triadic
#2F7F20 #202F7F #7F202F
tetradic
#2F7F20 #205E7F #70207F #7F4020
square
#2F7F20 #205E7F #70207F #7F4020
split-complementary
#2F7F20 #40207F #7F205E
monochromatic
#0B1D07 #1D4E14 #2F7F20 #41B02C #5ED148

Accessibility & contrast

On white

5.03
#2F7F20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F7F20
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7F20#FFFFFF#000000##FFFFFF
##2F7F201.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730F
Deuteranopia (green-blind)
#796C2A
Tritanopia (blue-blind)
#237B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7f20;
/* rgb */ color: rgb(47, 127, 32);
/* oklch */ color: oklch(52.7% 0.151 140.8);
Tailwind
colors: {
  custom: {
    50: '#72a562',
    500: '#2f7f20',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f20;
$custom-light: #72a562;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f20",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 110.526,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52747,
    "c": 0.15082,
    "h": 140.8
  },
  "luminance": 0.15887
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F7F20

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

Preview Lab → · Contrast checker → · Palette generator →

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