#2F7816#2F7816

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

Color values

HEX#2F7816
RGBrgb(47, 120, 22)
HSLhsl(105, 69%, 28%)
HSVhsv(105, 82%, 47%)
CMYKcmyk(60.8%, 0%, 81.7%, 52.9%)
CIE-LABlab(44.37, -40.78, 43.30)
CIE-LCHlch(44.37, 59.48, 133.28°)
OKLaboklab(50.7% -0.1123 0.0964)
OKLCHoklch(50.7% 0.148 139.4)
XYZxyz(8.0332, 14.0945, 3.0561)
Luminance0.1409 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7816 #5F1678
analogous
#607816 #2F7816 #16782E
triadic
#2F7816 #162F78 #78162F
tetradic
#2F7816 #166078 #5F1678 #782E16
square
#2F7816 #166078 #5F1678 #782E16
split-complementary
#2F7816 #2E1678 #781660
monochromatic
#0A1A05 #1B440D #2F7816 #43AC1F #5BD92F

Accessibility & contrast

On white

5.50
#2F7816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F7816
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7816#FFFFFF#000000##FFFFFF
##2F78161.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#736721
Tritanopia (blue-blind)
#277466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2f7816;
/* rgb */ color: rgb(47, 120, 22);
/* oklch */ color: oklch(50.7% 0.148 139.4);
Tailwind
colors: {
  custom: {
    50: '#71a05c',
    500: '#2f7816',
    950: '#000000',
  },
}
SCSS
$custom: #2f7816;
$custom-light: #71a05c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7816",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 22
  },
  "hsl": {
    "h": 104.694,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.50696,
    "c": 0.14797,
    "h": 139.4
  },
  "luminance": 0.14095
}

Semantic roles & 50–950 ramp

primary
#2F7816
secondary
#913CAD
accent
#3CECBF
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #2F7816

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

Preview Lab → · Contrast checker → · Palette generator →

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