#2F7F3A#2F7F3A

#2F7F3A is a mid, vivid green. Relative luminance 0.161; OKLCH L 53.0% C 0.130 H 146.0°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#2F7F3A
RGBrgb(47, 127, 58)
HSLhsl(128, 46%, 34%)
HSVhsv(128, 63%, 50%)
CMYKcmyk(63%, 0%, 54.3%, 50.2%)
CIE-LABlab(47.09, -39.69, 30.19)
CIE-LCHlch(47.09, 49.87, 142.75°)
OKLaboklab(53.05% -0.1074 0.0726)
OKLCHoklch(53.05% 0.13 146)
XYZxyz(9.5248, 16.0877, 6.6055)
Luminance0.1609 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F3A #7F2F74
analogous
#4C7F2F #2F7F3A #2F7F62
triadic
#2F7F3A #3A2F7F #7F3A2F
tetradic
#2F7F3A #2F4C7F #7F2F74 #7F622F
square
#2F7F3A #2F4C7F #7F2F74 #7F622F
split-complementary
#2F7F3A #622F7F #7F2F4C
monochromatic
#0E2611 #1E5226 #2F7F3A #40AC4E #63C571

Accessibility & contrast

On white

4.98
#2F7F3A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#2F7F3A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7F3A
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7F3A#FFFFFF#000000##FFFFFF
##2F7F3A1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817434
Deuteranopia (green-blind)
#776D3F
Tritanopia (blue-blind)
#1C7C6F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2f7f3a;
/* rgb */ color: rgb(47, 127, 58);
/* oklch */ color: oklch(53.0% 0.130 146.0);
Tailwind
colors: {
  custom: {
    50: '#71a572',
    500: '#2f7f3a',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f3a;
$custom-light: #71a572;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f3a",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 58
  },
  "hsl": {
    "h": 128.25,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.5305,
    "c": 0.12961,
    "h": 146
  },
  "luminance": 0.16089
}

Semantic roles & 50–950 ramp

primary
#2F7F3A
secondary
#AC5EA1
accent
#52C4D6
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #2F7F3A

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

Preview Lab → · Contrast checker → · Palette generator →

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