#2F7417#2F7417

#2F7417 is a mid, vivid green. Relative luminance 0.132; OKLCH L 49.6% C 0.142 H 139.2°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#2F7417
RGBrgb(47, 116, 23)
HSLhsl(105, 67%, 27%)
HSVhsv(105, 80%, 45%)
CMYKcmyk(59.5%, 0%, 80.2%, 54.5%)
CIE-LABlab(43.00, -39.16, 41.65)
CIE-LCHlch(43.00, 57.16, 133.24°)
OKLaboklab(49.57% -0.1078 0.0931)
OKLCHoklch(49.57% 0.142 139.2)
XYZxyz(7.5720, 13.1563, 2.9508)
Luminance0.1316 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7417 #5C1774
analogous
#5E7417 #2F7417 #17742E
triadic
#2F7417 #172F74 #74172F
tetradic
#2F7417 #175E74 #5C1774 #742E17
square
#2F7417 #175E74 #5C1774 #742E17
split-complementary
#2F7417 #2E1774 #74175E
monochromatic
#0A1A05 #1A410D #2F7417 #44A721 #5AD630

Accessibility & contrast

On white

5.78
#2F7417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#2F7417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7417
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7417#FFFFFF#000000##FFFFFF
##2F74171.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786902
Deuteranopia (green-blind)
#6F6321
Tritanopia (blue-blind)
#287063
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2f7417;
/* rgb */ color: rgb(47, 116, 23);
/* oklch */ color: oklch(49.6% 0.142 139.2);
Tailwind
colors: {
  custom: {
    50: '#709d5c',
    500: '#2f7417',
    950: '#000000',
  },
}
SCSS
$custom: #2f7417;
$custom-light: #709d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7417",
  "rgb": {
    "r": 47,
    "g": 116,
    "b": 23
  },
  "hsl": {
    "h": 104.516,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.49566,
    "c": 0.14245,
    "h": 139.2
  },
  "luminance": 0.13157
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F7417

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

Preview Lab → · Contrast checker → · Palette generator →

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