#2F7216#2F7216

#2F7216 is a mid, vivid green. Relative luminance 0.127; OKLCH L 49.0% C 0.141 H 139.0°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#2F7216
RGBrgb(47, 114, 22)
HSLhsl(104, 68%, 27%)
HSVhsv(104, 81%, 45%)
CMYKcmyk(58.8%, 0%, 80.7%, 55.3%)
CIE-LABlab(42.30, -38.44, 41.33)
CIE-LCHlch(42.30, 56.44, 132.92°)
OKLaboklab(48.99% -0.106 0.0923)
OKLCHoklch(48.99% 0.141 139)
XYZxyz(7.3341, 12.6963, 2.8230)
Luminance0.1270 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7216 #591672
analogous
#5D7216 #2F7216 #16722B
triadic
#2F7216 #162F72 #72162F
tetradic
#2F7216 #165D72 #591672 #722B16
square
#2F7216 #165D72 #591672 #722B16
split-complementary
#2F7216 #2B1672 #72165D
monochromatic
#0B1A05 #1A3F0C #2F7216 #44A520 #5AD62C

Accessibility & contrast

On white

5.93
#2F7216 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#2F7216 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7216
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7216#FFFFFF#000000##FFFFFF
##2F72161.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766701
Deuteranopia (green-blind)
#6D6220
Tritanopia (blue-blind)
#286E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f7216;
/* rgb */ color: rgb(47, 114, 22);
/* oklch */ color: oklch(49.0% 0.141 139.0);
Tailwind
colors: {
  custom: {
    50: '#709b5b',
    500: '#2f7216',
    950: '#000000',
  },
}
SCSS
$custom: #2f7216;
$custom-light: #709b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7216",
  "rgb": {
    "r": 47,
    "g": 114,
    "b": 22
  },
  "hsl": {
    "h": 103.696,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.4899,
    "c": 0.1405,
    "h": 139
  },
  "luminance": 0.12697
}

Semantic roles & 50–950 ramp

primary
#2F7216
secondary
#8B3CA8
accent
#3DEBBB
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7216

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

Preview Lab → · Contrast checker → · Palette generator →

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