#2F7E27#2F7E27

#2F7E27 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.145 H 141.8°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#2F7E27
RGBrgb(47, 126, 39)
HSLhsl(114, 53%, 32%)
HSVhsv(114, 69%, 49%)
CMYKcmyk(62.7%, 0%, 69%, 50.6%)
CIE-LABlab(46.54, -41.69, 38.84)
CIE-LCHlch(46.54, 56.97, 137.03°)
OKLaboklab(52.53% -0.1137 0.0894)
OKLCHoklch(52.53% 0.145 141.8)
XYZxyz(8.9989, 15.6717, 4.4698)
Luminance0.1567 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E27 #76277E
analogous
#5A7E27 #2F7E27 #277E4B
triadic
#2F7E27 #272F7E #7E272F
tetradic
#2F7E27 #275A7E #76277E #7E4B27
square
#2F7E27 #275A7E #76277E #7E4B27
split-complementary
#2F7E27 #4B277E #7E275A
monochromatic
#0C210A #1E4F19 #2F7E27 #40AD35 #60CA55

Accessibility & contrast

On white

5.08
#2F7E27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#2F7E27 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7E27
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7E27#FFFFFF#000000##FFFFFF
##2F7E271.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81721B
Deuteranopia (green-blind)
#776C2F
Tritanopia (blue-blind)
#227A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7e27;
/* rgb */ color: rgb(47, 126, 39);
/* oklch */ color: oklch(52.5% 0.145 141.8);
Tailwind
colors: {
  custom: {
    50: '#71a466',
    500: '#2f7e27',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e27;
$custom-light: #71a466;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e27",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 39
  },
  "hsl": {
    "h": 114.483,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5253,
    "c": 0.14465,
    "h": 141.8
  },
  "luminance": 0.15673
}

Semantic roles & 50–950 ramp

primary
#2F7E27
secondary
#A752AF
accent
#4CDCCF
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7E27

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

Preview Lab → · Contrast checker → · Palette generator →

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