#2F7E1E#2F7E1E

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

Color values

HEX#2F7E1E
RGBrgb(47, 126, 30)
HSLhsl(109, 62%, 31%)
HSVhsv(109, 76%, 49%)
CMYKcmyk(62.7%, 0%, 76.2%, 50.6%)
CIE-LABlab(46.47, -42.50, 42.49)
CIE-LCHlch(46.47, 60.10, 135.01°)
OKLaboklab(52.45% -0.1164 0.0959)
OKLCHoklch(52.45% 0.151 140.5)
XYZxyz(8.8671, 15.6190, 3.7755)
Luminance0.1562 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E1E #6D1E7E
analogous
#5F7E1E #2F7E1E #1E7E3D
triadic
#2F7E1E #1E2F7E #7E1E2F
tetradic
#2F7E1E #1E5F7E #6D1E7E #7E3D1E
square
#2F7E1E #1E5F7E #6D1E7E #7E3D1E
split-complementary
#2F7E1E #3D1E7E #7E1E5F
monochromatic
#0A1B06 #1D4D12 #2F7E1E #41AF2A #5DD244

Accessibility & contrast

On white

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

On black

4.12
#2F7E1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2F7E1E#FFFFFF#000000##FFFFFF
##2F7E1E1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81720B
Deuteranopia (green-blind)
#786C28
Tritanopia (blue-blind)
#247A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7e1e;
/* rgb */ color: rgb(47, 126, 30);
/* oklch */ color: oklch(52.4% 0.151 140.5);
Tailwind
colors: {
  custom: {
    50: '#72a461',
    500: '#2f7e1e',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e1e;
$custom-light: #72a461;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e1e",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 30
  },
  "hsl": {
    "h": 109.375,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.5245,
    "c": 0.15083,
    "h": 140.5
  },
  "luminance": 0.1562
}

Semantic roles & 50–950 ramp

primary
#2F7E1E
secondary
#9E47B1
accent
#43E5C8
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7E1E

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

Preview Lab → · Contrast checker → · Palette generator →

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