#2F7117#2F7117

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

Color values

HEX#2F7117
RGBrgb(47, 113, 23)
HSLhsl(104, 66%, 27%)
HSVhsv(104, 80%, 44%)
CMYKcmyk(58.4%, 0%, 79.6%, 55.7%)
CIE-LABlab(41.96, -37.97, 40.64)
CIE-LCHlch(41.96, 55.62, 133.05°)
OKLaboklab(48.71% -0.1046 0.091)
OKLCHoklch(48.71% 0.139 139)
XYZxyz(7.2318, 12.4759, 2.8374)
Luminance0.1248 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7117 #591771
analogous
#5C7117 #2F7117 #17712C
triadic
#2F7117 #172F71 #71172F
tetradic
#2F7117 #175C71 #591771 #712C17
square
#2F7117 #175C71 #591771 #712C17
split-complementary
#2F7117 #2C1771 #71175C
monochromatic
#0B1905 #1A3E0D #2F7117 #44A421 #5AD42E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F7117#FFFFFF#000000##FFFFFF
##2F71171.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)
#756603
Deuteranopia (green-blind)
#6C6121
Tritanopia (blue-blind)
#286D60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2f7117;
/* rgb */ color: rgb(47, 113, 23);
/* oklch */ color: oklch(48.7% 0.139 139.0);
Tailwind
colors: {
  custom: {
    50: '#709a5b',
    500: '#2f7117',
    950: '#000000',
  },
}
SCSS
$custom: #2f7117;
$custom-light: #709a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7117",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 23
  },
  "hsl": {
    "h": 104,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.48711,
    "c": 0.13865,
    "h": 139
  },
  "luminance": 0.12476
}

Semantic roles & 50–950 ramp

primary
#2F7117
secondary
#8B3DA7
accent
#3FE9BC
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7117

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

Preview Lab → · Contrast checker → · Palette generator →

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