#2F7B17#2F7B17

#2F7B17 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.6% C 0.151 H 139.6°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#2F7B17
RGBrgb(47, 123, 23)
HSLhsl(106, 68%, 29%)
HSVhsv(106, 81%, 48%)
CMYKcmyk(61.8%, 0%, 81.3%, 51.8%)
CIE-LABlab(45.40, -41.87, 43.95)
CIE-LCHlch(45.40, 60.70, 133.61°)
OKLaboklab(51.55% -0.1151 0.0979)
OKLCHoklch(51.55% 0.151 139.6)
XYZxyz(8.4095, 14.8314, 3.2300)
Luminance0.1483 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7B17 #63177B
analogous
#617B17 #2F7B17 #177B31
triadic
#2F7B17 #172F7B #7B172F
tetradic
#2F7B17 #17617B #63177B #7B3117
square
#2F7B17 #17617B #63177B #7B3117
split-complementary
#2F7B17 #31177B #7B1761
monochromatic
#0A1A05 #1B470D #2F7B17 #43AF21 #5BD933

Accessibility & contrast

On white

5.29
#2F7B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#2F7B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7B17
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7B17#FFFFFF#000000##FFFFFF
##2F7B171.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#756923
Tritanopia (blue-blind)
#267768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7b17;
/* rgb */ color: rgb(47, 123, 23);
/* oklch */ color: oklch(51.6% 0.151 139.6);
Tailwind
colors: {
  custom: {
    50: '#72a25d',
    500: '#2f7b17',
    950: '#000000',
  },
}
SCSS
$custom: #2f7b17;
$custom-light: #72a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7b17",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 105.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51553,
    "c": 0.15112,
    "h": 139.6
  },
  "luminance": 0.14832
}

Semantic roles & 50–950 ramp

primary
#2F7B17
secondary
#953EB0
accent
#3CEBC1
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7B17

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

Preview Lab → · Contrast checker → · Palette generator →

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