#2F7A1A#2F7A1A

#2F7A1A is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.3% C 0.148 H 139.9°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#2F7A1A
RGBrgb(47, 122, 26)
HSLhsl(107, 65%, 29%)
HSVhsv(107, 79%, 48%)
CMYKcmyk(61.5%, 0%, 78.7%, 52.2%)
CIE-LABlab(45.08, -41.28, 42.60)
CIE-LCHlch(45.08, 59.32, 134.10°)
OKLaboklab(51.29% -0.1134 0.0955)
OKLCHoklch(51.29% 0.148 139.9)
XYZxyz(8.3179, 14.5972, 3.3563)
Luminance0.1460 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7A1A #651A7A
analogous
#5F7A1A #2F7A1A #1A7A35
triadic
#2F7A1A #1A2F7A #7A1A2F
tetradic
#2F7A1A #1A5F7A #651A7A #7A351A
square
#2F7A1A #1A5F7A #651A7A #7A351A
split-complementary
#2F7A1A #351A7A #7A1A5F
monochromatic
#0A1905 #1C480F #2F7A1A #42AC25 #5BD539

Accessibility & contrast

On white

5.36
#2F7A1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#2F7A1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7A1A
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7A1A#FFFFFF#000000##FFFFFF
##2F7A1A1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E05
Deuteranopia (green-blind)
#746824
Tritanopia (blue-blind)
#257668
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7a1a;
/* rgb */ color: rgb(47, 122, 26);
/* oklch */ color: oklch(51.3% 0.148 139.9);
Tailwind
colors: {
  custom: {
    50: '#71a15e',
    500: '#2f7a1a',
    950: '#000000',
  },
}
SCSS
$custom: #2f7a1a;
$custom-light: #71a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7a1a",
  "rgb": {
    "r": 47,
    "g": 122,
    "b": 26
  },
  "hsl": {
    "h": 106.875,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.5129,
    "c": 0.14825,
    "h": 139.9
  },
  "luminance": 0.14598
}

Semantic roles & 50–950 ramp

primary
#2F7A1A
secondary
#9741AE
accent
#40E8C3
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2F7A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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