#2F7817#2F7817

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

Color values

HEX#2F7817
RGBrgb(47, 120, 23)
HSLhsl(105, 68%, 28%)
HSVhsv(105, 81%, 47%)
CMYKcmyk(60.8%, 0%, 80.8%, 52.9%)
CIE-LABlab(44.37, -40.72, 42.97)
CIE-LCHlch(44.37, 59.20, 133.46°)
OKLaboklab(50.7% -0.112 0.0959)
OKLCHoklch(50.7% 0.147 139.5)
XYZxyz(8.0431, 14.0984, 3.1079)
Luminance0.1410 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7817 #601778
analogous
#5F7817 #2F7817 #177830
triadic
#2F7817 #172F78 #78172F
tetradic
#2F7817 #175F78 #601778 #783017
square
#2F7817 #175F78 #601778 #783017
split-complementary
#2F7817 #301778 #78175F
monochromatic
#0A1A05 #1B450D #2F7817 #43AB21 #5BD832

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F7817#FFFFFF#000000##FFFFFF
##2F78171.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)
#736722
Tritanopia (blue-blind)
#267466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2f7817;
/* rgb */ color: rgb(47, 120, 23);
/* oklch */ color: oklch(50.7% 0.147 139.5);
Tailwind
colors: {
  custom: {
    50: '#71a05d',
    500: '#2f7817',
    950: '#000000',
  },
}
SCSS
$custom: #2f7817;
$custom-light: #71a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7817",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 105.155,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50702,
    "c": 0.14744,
    "h": 139.5
  },
  "luminance": 0.14099
}

Semantic roles & 50–950 ramp

primary
#2F7817
secondary
#923EAD
accent
#3DEBC0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #2F7817

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

Preview Lab → · Contrast checker → · Palette generator →

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