#2F7F17#2F7F17

#2F7F17 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.7% C 0.156 H 139.8°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#2F7F17
RGBrgb(47, 127, 23)
HSLhsl(106, 69%, 29%)
HSVhsv(106, 82%, 50%)
CMYKcmyk(63%, 0%, 81.9%, 50.2%)
CIE-LABlab(46.77, -43.37, 45.25)
CIE-LCHlch(46.77, 62.68, 133.79°)
OKLaboklab(52.68% -0.1192 0.1006)
OKLCHoklch(52.68% 0.156 139.8)
XYZxyz(8.9159, 15.8441, 3.3988)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F17 #67177F
analogous
#637F17 #2F7F17 #177F33
triadic
#2F7F17 #172F7F #7F172F
tetradic
#2F7F17 #17637F #67177F #7F3317
square
#2F7F17 #17637F #67177F #7F3317
split-complementary
#2F7F17 #33177F #7F1763
monochromatic
#0A1A05 #1C4B0E #2F7F17 #42B320 #5CDB36

Accessibility & contrast

On white

5.04
#2F7F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#2F7F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7F17
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7F17#FFFFFF#000000##FFFFFF
##2F7F171.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#796C23
Tritanopia (blue-blind)
#247B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7f17;
/* rgb */ color: rgb(47, 127, 23);
/* oklch */ color: oklch(52.7% 0.156 139.8);
Tailwind
colors: {
  custom: {
    50: '#73a55e',
    500: '#2f7f17',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f17;
$custom-light: #73a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f17",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 106.154,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52683,
    "c": 0.15597,
    "h": 139.8
  },
  "luminance": 0.15845
}

Semantic roles & 50–950 ramp

primary
#2F7F17
secondary
#983EB4
accent
#3CECC3
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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