#2F771B#2F771B

#2F771B is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.4% C 0.144 H 139.8°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#2F771B
RGBrgb(47, 119, 27)
HSLhsl(107, 63%, 29%)
HSVhsv(107, 77%, 47%)
CMYKcmyk(60.5%, 0%, 77.3%, 53.3%)
CIE-LABlab(44.06, -40.04, 41.22)
CIE-LCHlch(44.06, 57.46, 134.17°)
OKLaboklab(50.45% -0.11 0.0928)
OKLCHoklch(50.45% 0.144 139.8)
XYZxyz(7.9666, 13.8764, 3.2953)
Luminance0.1388 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F771B #631B77
analogous
#5D771B #2F771B #1B7735
triadic
#2F771B #1B2F77 #771B2F
tetradic
#2F771B #1B5D77 #631B77 #77351B
square
#2F771B #1B5D77 #631B77 #77351B
split-complementary
#2F771B #351B77 #771B5D
monochromatic
#0A1906 #1B4510 #2F771B #43A926 #5BD23A

Accessibility & contrast

On white

5.56
#2F771B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#2F771B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F771B
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F771B#FFFFFF#000000##FFFFFF
##2F771B1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C08
Deuteranopia (green-blind)
#726625
Tritanopia (blue-blind)
#267365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2f771b;
/* rgb */ color: rgb(47, 119, 27);
/* oklch */ color: oklch(50.4% 0.144 139.8);
Tailwind
colors: {
  custom: {
    50: '#719f5e',
    500: '#2f771b',
    950: '#000000',
  },
}
SCSS
$custom: #2f771b;
$custom-light: #719f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f771b",
  "rgb": {
    "r": 47,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 106.957,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50447,
    "c": 0.14389,
    "h": 139.8
  },
  "luminance": 0.13877
}

Semantic roles & 50–950 ramp

primary
#2F771B
secondary
#9542AB
accent
#42E6C2
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2F771B

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

Preview Lab → · Contrast checker → · Palette generator →

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