#2F7917#2F7917

#2F7917 is a mid, vivid green. Relative luminance 0.143; OKLCH L 51.0% C 0.149 H 139.5°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#2F7917
RGBrgb(47, 121, 23)
HSLhsl(105, 68%, 28%)
HSVhsv(105, 81%, 47%)
CMYKcmyk(61.2%, 0%, 81%, 52.5%)
CIE-LABlab(44.72, -41.10, 43.30)
CIE-LCHlch(44.72, 59.70, 133.51°)
OKLaboklab(50.99% -0.1131 0.0965)
OKLCHoklch(50.99% 0.149 139.5)
XYZxyz(8.1640, 14.3402, 3.1482)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7917 #611779
analogous
#607917 #2F7917 #177930
triadic
#2F7917 #172F79 #79172F
tetradic
#2F7917 #176079 #611779 #793017
square
#2F7917 #176079 #611779 #793017
split-complementary
#2F7917 #301779 #791760
monochromatic
#0A1A05 #1B460D #2F7917 #43AC21 #5BD832

Accessibility & contrast

On white

5.43
#2F7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#2F7917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7917
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7917#FFFFFF#000000##FFFFFF
##2F79171.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#746722
Tritanopia (blue-blind)
#267567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2f7917;
/* rgb */ color: rgb(47, 121, 23);
/* oklch */ color: oklch(51.0% 0.149 139.5);
Tailwind
colors: {
  custom: {
    50: '#71a05d',
    500: '#2f7917',
    950: '#000000',
  },
}
SCSS
$custom: #2f7917;
$custom-light: #71a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7917",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 105.306,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50986,
    "c": 0.14867,
    "h": 139.5
  },
  "luminance": 0.14341
}

Semantic roles & 50–950 ramp

primary
#2F7917
secondary
#933EAE
accent
#3DEBC0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #2F7917

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

Preview Lab → · Contrast checker → · Palette generator →

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