#2F7717#2F7717

#2F7717 is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.4% C 0.146 H 139.4°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#2F7717
RGBrgb(47, 119, 23)
HSLhsl(105, 68%, 28%)
HSVhsv(105, 81%, 47%)
CMYKcmyk(60.5%, 0%, 80.7%, 53.3%)
CIE-LABlab(44.03, -40.33, 42.64)
CIE-LCHlch(44.03, 58.69, 133.40°)
OKLaboklab(50.42% -0.111 0.0952)
OKLCHoklch(50.42% 0.146 139.4)
XYZxyz(7.9234, 13.8592, 3.0680)
Luminance0.1386 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7717 #5F1777
analogous
#5F7717 #2F7717 #17772F
triadic
#2F7717 #172F77 #77172F
tetradic
#2F7717 #175F77 #5F1777 #772F17
square
#2F7717 #175F77 #5F1777 #772F17
split-complementary
#2F7717 #2F1777 #77175F
monochromatic
#0A1A05 #1B440D #2F7717 #43AA21 #5BD731

Accessibility & contrast

On white

5.57
#2F7717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#2F7717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7717
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7717#FFFFFF#000000##FFFFFF
##2F77171.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#726622
Tritanopia (blue-blind)
#277365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2f7717;
/* rgb */ color: rgb(47, 119, 23);
/* oklch */ color: oklch(50.4% 0.146 139.4);
Tailwind
colors: {
  custom: {
    50: '#719f5c',
    500: '#2f7717',
    950: '#000000',
  },
}
SCSS
$custom: #2f7717;
$custom-light: #719f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7717",
  "rgb": {
    "r": 47,
    "g": 119,
    "b": 23
  },
  "hsl": {
    "h": 105,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.50419,
    "c": 0.1462,
    "h": 139.4
  },
  "luminance": 0.1386
}

Semantic roles & 50–950 ramp

primary
#2F7717
secondary
#913EAC
accent
#3DEABF
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7717

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

Preview Lab → · Contrast checker → · Palette generator →

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