#2F7E17#2F7E17

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

Color values

HEX#2F7E17
RGBrgb(47, 126, 23)
HSLhsl(106, 69%, 29%)
HSVhsv(106, 82%, 49%)
CMYKcmyk(62.7%, 0%, 81.7%, 50.6%)
CIE-LABlab(46.43, -43.00, 44.93)
CIE-LCHlch(46.43, 62.19, 133.74°)
OKLaboklab(52.4% -0.1182 0.0999)
OKLCHoklch(52.4% 0.155 139.8)
XYZxyz(8.7874, 15.5871, 3.3560)
Luminance0.1559 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E17 #66177E
analogous
#637E17 #2F7E17 #177E32
triadic
#2F7E17 #172F7E #7E172F
tetradic
#2F7E17 #17637E #66177E #7E3217
square
#2F7E17 #17637E #66177E #7E3217
split-complementary
#2F7E17 #32177E #7E1763
monochromatic
#0A1A05 #1C4A0E #2F7E17 #42B220 #5CDA35

Accessibility & contrast

On white

5.10
#2F7E17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2F7E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7E17
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7E17#FFFFFF#000000##FFFFFF
##2F7E171.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#786C23
Tritanopia (blue-blind)
#257A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7e17;
/* rgb */ color: rgb(47, 126, 23);
/* oklch */ color: oklch(52.4% 0.155 139.8);
Tailwind
colors: {
  custom: {
    50: '#72a45d',
    500: '#2f7e17',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e17;
$custom-light: #72a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e17",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 106.019,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52401,
    "c": 0.15476,
    "h": 139.8
  },
  "luminance": 0.15588
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F7E17

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

Preview Lab → · Contrast checker → · Palette generator →

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