#2F7C27#2F7C27

#2F7C27 is a mid, vivid green. Relative luminance 0.152; OKLCH L 52.0% C 0.142 H 141.8°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#2F7C27
RGBrgb(47, 124, 39)
HSLhsl(114, 52%, 32%)
HSVhsv(114, 69%, 49%)
CMYKcmyk(62.1%, 0%, 68.5%, 51.4%)
CIE-LABlab(45.86, -40.91, 38.10)
CIE-LCHlch(45.86, 55.90, 137.04°)
OKLaboklab(51.97% -0.1116 0.0879)
OKLCHoklch(51.97% 0.142 141.8)
XYZxyz(8.7457, 15.1653, 4.3854)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7C27 #74277C
analogous
#5A7C27 #2F7C27 #277C4A
triadic
#2F7C27 #272F7C #7C272F
tetradic
#2F7C27 #275A7C #74277C #7C4A27
square
#2F7C27 #275A7C #74277C #7C4A27
split-complementary
#2F7C27 #4A277C #7C275A
monochromatic
#0C1F0A #1D4D18 #2F7C27 #41AB36 #5FC954

Accessibility & contrast

On white

5.21
#2F7C27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#2F7C27 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7C27
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7C27#FFFFFF#000000##FFFFFF
##2F7C271.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F711C
Deuteranopia (green-blind)
#756A2F
Tritanopia (blue-blind)
#23786B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f7c27;
/* rgb */ color: rgb(47, 124, 39);
/* oklch */ color: oklch(52.0% 0.142 141.8);
Tailwind
colors: {
  custom: {
    50: '#71a365',
    500: '#2f7c27',
    950: '#000000',
  },
}
SCSS
$custom: #2f7c27;
$custom-light: #71a365;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7c27",
  "rgb": {
    "r": 47,
    "g": 124,
    "b": 39
  },
  "hsl": {
    "h": 114.353,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.51968,
    "c": 0.14204,
    "h": 141.8
  },
  "luminance": 0.15166
}

Semantic roles & 50–950 ramp

primary
#2F7C27
secondary
#A551AE
accent
#4CDCCE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7C27

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

Preview Lab → · Contrast checker → · Palette generator →

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