#2F7A17#2F7A17

#2F7A17 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.3% C 0.150 H 139.6°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#2F7A17
RGBrgb(47, 122, 23)
HSLhsl(105, 68%, 28%)
HSVhsv(105, 81%, 48%)
CMYKcmyk(61.5%, 0%, 81.1%, 52.2%)
CIE-LABlab(45.06, -41.48, 43.63)
CIE-LCHlch(45.06, 60.20, 133.56°)
OKLaboklab(51.27% -0.1141 0.0972)
OKLCHoklch(51.27% 0.15 139.6)
XYZxyz(8.2861, 14.5845, 3.1889)
Luminance0.1459 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7A17 #62177A
analogous
#607A17 #2F7A17 #177A31
triadic
#2F7A17 #172F7A #7A172F
tetradic
#2F7A17 #17607A #62177A #7A3117
square
#2F7A17 #17607A #62177A #7A3117
split-complementary
#2F7A17 #31177A #7A1760
monochromatic
#0A1A05 #1B470D #2F7A17 #43AD21 #5BD933

Accessibility & contrast

On white

5.36
#2F7A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#2F7A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7A17
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7A17#FFFFFF#000000##FFFFFF
##2F7A171.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#746822
Tritanopia (blue-blind)
#267668
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7a17;
/* rgb */ color: rgb(47, 122, 23);
/* oklch */ color: oklch(51.3% 0.150 139.6);
Tailwind
colors: {
  custom: {
    50: '#72a15d',
    500: '#2f7a17',
    950: '#000000',
  },
}
SCSS
$custom: #2f7a17;
$custom-light: #72a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7a17",
  "rgb": {
    "r": 47,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 105.455,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51269,
    "c": 0.1499,
    "h": 139.6
  },
  "luminance": 0.14585
}

Semantic roles & 50–950 ramp

primary
#2F7A17
secondary
#943EAF
accent
#3DEBC1
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2F7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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