#2F7E1A#2F7E1A

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

Color values

HEX#2F7E1A
RGBrgb(47, 126, 26)
HSLhsl(107, 66%, 30%)
HSVhsv(107, 79%, 49%)
CMYKcmyk(62.7%, 0%, 79.4%, 50.6%)
CIE-LABlab(46.45, -42.80, 43.93)
CIE-LCHlch(46.45, 61.33, 134.25°)
OKLaboklab(52.42% -0.1175 0.0983)
OKLCHoklch(52.42% 0.153 140.1)
XYZxyz(8.8192, 15.5998, 3.5234)
Luminance0.1560 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E1A #691A7E
analogous
#617E1A #2F7E1A #1A7E37
triadic
#2F7E1A #1A2F7E #7E1A2F
tetradic
#2F7E1A #1A617E #691A7E #7E371A
square
#2F7E1A #1A617E #691A7E #7E371A
split-complementary
#2F7E1A #371A7E #7E1A61
monochromatic
#091905 #1C4B10 #2F7E1A #42B124 #5CD73C

Accessibility & contrast

On white

5.10
#2F7E1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F7E1A
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7E1A#FFFFFF#000000##FFFFFF
##2F7E1A1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827202
Deuteranopia (green-blind)
#786C25
Tritanopia (blue-blind)
#247A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7e1a;
/* rgb */ color: rgb(47, 126, 26);
/* oklch */ color: oklch(52.4% 0.153 140.1);
Tailwind
colors: {
  custom: {
    50: '#72a45f',
    500: '#2f7e1a',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e1a;
$custom-light: #72a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e1a",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 26
  },
  "hsl": {
    "h": 107.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.5242,
    "c": 0.15318,
    "h": 140.1
  },
  "luminance": 0.15601
}

Semantic roles & 50–950 ramp

primary
#2F7E1A
secondary
#9A42B2
accent
#3FE9C5
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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