#2F7118#2F7118

#2F7118 is a mid, vivid green. Relative luminance 0.125; OKLCH L 48.7% C 0.138 H 139.1°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#2F7118
RGBrgb(47, 113, 24)
HSLhsl(104, 65%, 27%)
HSVhsv(104, 79%, 44%)
CMYKcmyk(58.4%, 0%, 78.8%, 55.7%)
CIE-LABlab(41.97, -37.89, 40.28)
CIE-LCHlch(41.97, 55.30, 133.25°)
OKLaboklab(48.72% -0.1044 0.0904)
OKLCHoklch(48.72% 0.138 139.1)
XYZxyz(7.2420, 12.4799, 2.8912)
Luminance0.1248 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7118 #5A1871
analogous
#5C7118 #2F7118 #18712D
triadic
#2F7118 #182F71 #71182F
tetradic
#2F7118 #185C71 #5A1871 #712D18
square
#2F7118 #185C71 #5A1871 #712D18
split-complementary
#2F7118 #2D1871 #71185C
monochromatic
#0A1905 #1A3F0D #2F7118 #44A323 #5AD330

Accessibility & contrast

On white

6.01
#2F7118 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#2F7118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7118
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7118#FFFFFF#000000##FFFFFF
##2F71181.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756605
Deuteranopia (green-blind)
#6C6122
Tritanopia (blue-blind)
#286D60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2f7118;
/* rgb */ color: rgb(47, 113, 24);
/* oklch */ color: oklch(48.7% 0.138 139.1);
Tailwind
colors: {
  custom: {
    50: '#709a5c',
    500: '#2f7118',
    950: '#000000',
  },
}
SCSS
$custom: #2f7118;
$custom-light: #709a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7118",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 24
  },
  "hsl": {
    "h": 104.494,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.48719,
    "c": 0.13807,
    "h": 139.1
  },
  "luminance": 0.12481
}

Semantic roles & 50–950 ramp

primary
#2F7118
secondary
#8C3EA6
accent
#40E8BD
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7118

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

Preview Lab → · Contrast checker → · Palette generator →

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