#2F781B#2F781B

#2F781B is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.7% C 0.145 H 139.9°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#2F781B
RGBrgb(47, 120, 27)
HSLhsl(107, 63%, 29%)
HSVhsv(107, 78%, 47%)
CMYKcmyk(60.8%, 0%, 77.5%, 52.9%)
CIE-LABlab(44.40, -40.43, 41.56)
CIE-LCHlch(44.40, 57.98, 134.21°)
OKLaboklab(50.73% -0.111 0.0935)
OKLCHoklch(50.73% 0.145 139.9)
XYZxyz(8.0862, 14.1157, 3.3352)
Luminance0.1412 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F781B #641B78
analogous
#5E781B #2F781B #1B7836
triadic
#2F781B #1B2F78 #781B2F
tetradic
#2F781B #1B5E78 #641B78 #78361B
square
#2F781B #1B5E78 #641B78 #78361B
split-complementary
#2F781B #361B78 #781B5E
monochromatic
#0A1906 #1B4610 #2F781B #43AA26 #5BD33B

Accessibility & contrast

On white

5.49
#2F781B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#2F781B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F781B
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F781B#FFFFFF#000000##FFFFFF
##2F781B1.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D08
Deuteranopia (green-blind)
#726725
Tritanopia (blue-blind)
#267466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2f781b;
/* rgb */ color: rgb(47, 120, 27);
/* oklch */ color: oklch(50.7% 0.145 139.9);
Tailwind
colors: {
  custom: {
    50: '#71a05e',
    500: '#2f781b',
    950: '#000000',
  },
}
SCSS
$custom: #2f781b;
$custom-light: #71a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f781b",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 107.097,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50731,
    "c": 0.14515,
    "h": 139.9
  },
  "luminance": 0.14116
}

Semantic roles & 50–950 ramp

primary
#2F781B
secondary
#9643AC
accent
#41E6C3
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2F781B

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

Preview Lab → · Contrast checker → · Palette generator →

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