#2F7E28#2F7E28

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

Color values

HEX#2F7E28
RGBrgb(47, 126, 40)
HSLhsl(115, 52%, 33%)
HSVhsv(115, 68%, 49%)
CMYKcmyk(62.7%, 0%, 68.3%, 50.6%)
CIE-LABlab(46.55, -41.58, 38.40)
CIE-LCHlch(46.55, 56.60, 137.28°)
OKLaboklab(52.54% -0.1133 0.0886)
OKLCHoklch(52.54% 0.144 142)
XYZxyz(9.0157, 15.6784, 4.5582)
Luminance0.1568 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E28 #77287E
analogous
#5A7E28 #2F7E28 #287E4C
triadic
#2F7E28 #282F7E #7E282F
tetradic
#2F7E28 #285A7E #77287E #7E4C28
square
#2F7E28 #285A7E #77287E #7E4C28
split-complementary
#2F7E28 #4C287E #7E285A
monochromatic
#0C210B #1E5019 #2F7E28 #40AC37 #60CA57

Accessibility & contrast

On white

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

On black

4.14
#2F7E28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2F7E28#FFFFFF#000000##FFFFFF
##2F7E281.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f7e28;
/* rgb */ color: rgb(47, 126, 40);
/* oklch */ color: oklch(52.5% 0.144 142.0);
Tailwind
colors: {
  custom: {
    50: '#71a466',
    500: '#2f7e28',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e28;
$custom-light: #71a466;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e28",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 40
  },
  "hsl": {
    "h": 115.116,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5254,
    "c": 0.14389,
    "h": 142
  },
  "luminance": 0.15679
}

Semantic roles & 50–950 ramp

primary
#2F7E28
secondary
#A753AF
accent
#4DDBD0
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7E28

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

Preview Lab → · Contrast checker → · Palette generator →

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