#2F7A1B#2F7A1B

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

Color values

HEX#2F7A1B
RGBrgb(47, 122, 27)
HSLhsl(107, 64%, 29%)
HSVhsv(107, 78%, 48%)
CMYKcmyk(61.5%, 0%, 77.9%, 52.2%)
CIE-LABlab(45.08, -41.20, 42.24)
CIE-LCHlch(45.08, 59.01, 134.29°)
OKLaboklab(51.3% -0.1131 0.0949)
OKLCHoklch(51.3% 0.148 140)
XYZxyz(8.3293, 14.6018, 3.4162)
Luminance0.1460 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7A1B #661B7A
analogous
#5F7A1B #2F7A1B #1B7A37
triadic
#2F7A1B #1B2F7A #7A1B2F
tetradic
#2F7A1B #1B5F7A #661B7A #7A371B
square
#2F7A1B #1B5F7A #661B7A #7A371B
split-complementary
#2F7A1B #371B7A #7A1B5F
monochromatic
#0A1906 #1C4810 #2F7A1B #42AC26 #5CD43C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F7A1B#FFFFFF#000000##FFFFFF
##2F7A1B1.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)
#7E6E07
Deuteranopia (green-blind)
#746825
Tritanopia (blue-blind)
#257668
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7a1b;
/* rgb */ color: rgb(47, 122, 27);
/* oklch */ color: oklch(51.3% 0.148 140.0);
Tailwind
colors: {
  custom: {
    50: '#71a15f',
    500: '#2f7a1b',
    950: '#000000',
  },
}
SCSS
$custom: #2f7a1b;
$custom-light: #71a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7a1b",
  "rgb": {
    "r": 47,
    "g": 122,
    "b": 27
  },
  "hsl": {
    "h": 107.368,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51297,
    "c": 0.14766,
    "h": 140
  },
  "luminance": 0.14603
}

Semantic roles & 50–950 ramp

primary
#2F7A1B
secondary
#9843AE
accent
#41E7C4
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2F7A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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