#2F7317#2F7317

#2F7317 is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.3% C 0.141 H 139.1°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#2F7317
RGBrgb(47, 115, 23)
HSLhsl(104, 67%, 27%)
HSVhsv(104, 80%, 45%)
CMYKcmyk(59.1%, 0%, 80%, 54.9%)
CIE-LABlab(42.65, -38.76, 41.31)
CIE-LCHlch(42.65, 56.65, 133.18°)
OKLaboklab(49.28% -0.1068 0.0924)
OKLCHoklch(49.28% 0.141 139.1)
XYZxyz(7.4574, 12.9270, 2.9126)
Luminance0.1293 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7317 #5B1773
analogous
#5D7317 #2F7317 #17732D
triadic
#2F7317 #172F73 #73172F
tetradic
#2F7317 #175D73 #5B1773 #732D17
square
#2F7317 #175D73 #5B1773 #732D17
split-complementary
#2F7317 #2D1773 #73175D
monochromatic
#0A1A05 #1A400D #2F7317 #44A621 #5AD52F

Accessibility & contrast

On white

5.86
#2F7317 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#2F7317 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7317
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7317#FFFFFF#000000##FFFFFF
##2F73171.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776802
Deuteranopia (green-blind)
#6E6321
Tritanopia (blue-blind)
#286F62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2f7317;
/* rgb */ color: rgb(47, 115, 23);
/* oklch */ color: oklch(49.3% 0.141 139.1);
Tailwind
colors: {
  custom: {
    50: '#709c5c',
    500: '#2f7317',
    950: '#000000',
  },
}
SCSS
$custom: #2f7317;
$custom-light: #709c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7317",
  "rgb": {
    "r": 47,
    "g": 115,
    "b": 23
  },
  "hsl": {
    "h": 104.348,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.49281,
    "c": 0.1412,
    "h": 139.1
  },
  "luminance": 0.12928
}

Semantic roles & 50–950 ramp

primary
#2F7317
secondary
#8D3DA9
accent
#3EEABD
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7317

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

Preview Lab → · Contrast checker → · Palette generator →

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