#2F7517#2F7517

#2F7517 is a mid, vivid green. Relative luminance 0.134; OKLCH L 49.9% C 0.144 H 139.3°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#2F7517
RGBrgb(47, 117, 23)
HSLhsl(105, 67%, 27%)
HSVhsv(105, 80%, 46%)
CMYKcmyk(59.8%, 0%, 80.3%, 54.1%)
CIE-LABlab(43.34, -39.55, 41.98)
CIE-LCHlch(43.34, 57.68, 133.29°)
OKLaboklab(49.85% -0.1089 0.0938)
OKLCHoklch(49.85% 0.144 139.3)
XYZxyz(7.6879, 13.3881, 2.9895)
Luminance0.1339 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7517 #5D1775
analogous
#5E7517 #2F7517 #17752E
triadic
#2F7517 #172F75 #75172F
tetradic
#2F7517 #175E75 #5D1775 #752E17
square
#2F7517 #175E75 #5D1775 #752E17
split-complementary
#2F7517 #2E1775 #75175E
monochromatic
#0A1A05 #1A420D #2F7517 #44A821 #5BD630

Accessibility & contrast

On white

5.71
#2F7517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#2F7517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7517
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7517#FFFFFF#000000##FFFFFF
##2F75171.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A01
Deuteranopia (green-blind)
#706422
Tritanopia (blue-blind)
#277163
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2f7517;
/* rgb */ color: rgb(47, 117, 23);
/* oklch */ color: oklch(49.9% 0.144 139.3);
Tailwind
colors: {
  custom: {
    50: '#719d5c',
    500: '#2f7517',
    950: '#000000',
  },
}
SCSS
$custom: #2f7517;
$custom-light: #719d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7517",
  "rgb": {
    "r": 47,
    "g": 117,
    "b": 23
  },
  "hsl": {
    "h": 104.681,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.4985,
    "c": 0.14371,
    "h": 139.3
  },
  "luminance": 0.13389
}

Semantic roles & 50–950 ramp

primary
#2F7517
secondary
#8F3DAA
accent
#3EEABE
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7517

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

Preview Lab → · Contrast checker → · Palette generator →

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