#2F7D28#2F7D28

#2F7D28 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.3% C 0.143 H 142.0°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#2F7D28
RGBrgb(47, 125, 40)
HSLhsl(115, 52%, 32%)
HSVhsv(115, 68%, 49%)
CMYKcmyk(62.4%, 0%, 68%, 51%)
CIE-LABlab(46.21, -41.19, 38.03)
CIE-LCHlch(46.21, 56.06, 137.29°)
OKLaboklab(52.26% -0.1123 0.0879)
OKLCHoklch(52.26% 0.143 142)
XYZxyz(8.8884, 15.4239, 4.5158)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7D28 #76287D
analogous
#597D28 #2F7D28 #287D4C
triadic
#2F7D28 #282F7D #7D282F
tetradic
#2F7D28 #28597D #76287D #7D4C28
square
#2F7D28 #28597D #76287D #7D4C28
split-complementary
#2F7D28 #4C287D #7D2859
monochromatic
#0C200A #1E4F19 #2F7D28 #40AB37 #60C956

Accessibility & contrast

On white

5.14
#2F7D28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#2F7D28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7D28
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7D28#FFFFFF#000000##FFFFFF
##2F7D281.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80711D
Deuteranopia (green-blind)
#766B30
Tritanopia (blue-blind)
#22796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f7d28;
/* rgb */ color: rgb(47, 125, 40);
/* oklch */ color: oklch(52.3% 0.143 142.0);
Tailwind
colors: {
  custom: {
    50: '#71a366',
    500: '#2f7d28',
    950: '#000000',
  },
}
SCSS
$custom: #2f7d28;
$custom-light: #71a366;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7d28",
  "rgb": {
    "r": 47,
    "g": 125,
    "b": 40
  },
  "hsl": {
    "h": 115.059,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52259,
    "c": 0.14258,
    "h": 142
  },
  "luminance": 0.15425
}

Semantic roles & 50–950 ramp

primary
#2F7D28
secondary
#A753AE
accent
#4DDBCF
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7D28

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

Preview Lab → · Contrast checker → · Palette generator →

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