#2F7A28#2F7A28

#2F7A28 is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.4% C 0.139 H 141.9°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#2F7A28
RGBrgb(47, 122, 40)
HSLhsl(115, 51%, 32%)
HSVhsv(115, 67%, 48%)
CMYKcmyk(61.5%, 0%, 67.2%, 52.2%)
CIE-LABlab(45.19, -40.01, 36.91)
CIE-LCHlch(45.19, 54.44, 137.31°)
OKLaboklab(51.42% -0.1091 0.0855)
OKLCHoklch(51.42% 0.139 141.9)
XYZxyz(8.5144, 14.6758, 4.3911)
Luminance0.1468 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7A28 #73287A
analogous
#587A28 #2F7A28 #287A4A
triadic
#2F7A28 #282F7A #7A282F
tetradic
#2F7A28 #28587A #73287A #7A4A28
square
#2F7A28 #28587A #73287A #7A4A28
split-complementary
#2F7A28 #4A287A #7A2858
monochromatic
#0B1E0A #1D4C19 #2F7A28 #41A837 #5FC755

Accessibility & contrast

On white

5.34
#2F7A28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#2F7A28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7A28
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7A28#FFFFFF#000000##FFFFFF
##2F7A281.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F1E
Deuteranopia (green-blind)
#74692F
Tritanopia (blue-blind)
#237669
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7a28;
/* rgb */ color: rgb(47, 122, 40);
/* oklch */ color: oklch(51.4% 0.139 141.9);
Tailwind
colors: {
  custom: {
    50: '#71a166',
    500: '#2f7a28',
    950: '#000000',
  },
}
SCSS
$custom: #2f7a28;
$custom-light: #71a166;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7a28",
  "rgb": {
    "r": 47,
    "g": 122,
    "b": 40
  },
  "hsl": {
    "h": 114.878,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.51415,
    "c": 0.13861,
    "h": 141.9
  },
  "luminance": 0.14677
}

Semantic roles & 50–950 ramp

primary
#2F7A28
secondary
#A452AC
accent
#4EDACE
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7A28

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

Preview Lab → · Contrast checker → · Palette generator →

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