#2F781F#2F781F

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

Color values

HEX#2F781F
RGBrgb(47, 120, 31)
HSLhsl(109, 59%, 30%)
HSVhsv(109, 74%, 47%)
CMYKcmyk(60.8%, 0%, 74.2%, 52.9%)
CIE-LABlab(44.43, -40.10, 40.02)
CIE-LCHlch(44.43, 56.66, 135.06°)
OKLaboklab(50.76% -0.1099 0.0909)
OKLCHoklch(50.76% 0.143 140.4)
XYZxyz(8.1357, 14.1355, 3.5957)
Luminance0.1414 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F781F #681F78
analogous
#5C781F #2F781F #1F783B
triadic
#2F781F #1F2F78 #781F2F
tetradic
#2F781F #1F5C78 #681F78 #783B1F
square
#2F781F #1F5C78 #681F78 #783B1F
split-complementary
#2F781F #3B1F78 #781F5C
monochromatic
#0A1806 #1C4712 #2F781F #42A92C #5CCE43

Accessibility & contrast

On white

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

On black

3.83
#2F781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2F781F#FFFFFF#000000##FFFFFF
##2F781F1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D10
Deuteranopia (green-blind)
#726728
Tritanopia (blue-blind)
#257466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2f781f;
/* rgb */ color: rgb(47, 120, 31);
/* oklch */ color: oklch(50.8% 0.143 140.4);
Tailwind
colors: {
  custom: {
    50: '#71a060',
    500: '#2f781f',
    950: '#000000',
  },
}
SCSS
$custom: #2f781f;
$custom-light: #71a060;
$custom-dark: #000000;
JSON
{
  "hex": "#2f781f",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 109.213,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.50763,
    "c": 0.1426,
    "h": 140.4
  },
  "luminance": 0.14136
}

Semantic roles & 50–950 ramp

primary
#2F781F
secondary
#9947AB
accent
#46E2C6
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2F781F

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

Preview Lab → · Contrast checker → · Palette generator →

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