#2F7C2E#2F7C2E

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

Color values

HEX#2F7C2E
RGBrgb(47, 124, 46)
HSLhsl(119, 46%, 33%)
HSVhsv(119, 63%, 49%)
CMYKcmyk(62.1%, 0%, 62.9%, 51.4%)
CIE-LABlab(45.93, -40.12, 34.90)
CIE-LCHlch(45.93, 53.17, 138.98°)
OKLaboklab(52.05% -0.109 0.0819)
OKLCHoklch(52.05% 0.136 143.1)
XYZxyz(8.8726, 15.2161, 5.0537)
Luminance0.1522 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7C2E #7B2E7C
analogous
#567C2E #2F7C2E #2E7C54
triadic
#2F7C2E #2E2F7C #7C2E2F
tetradic
#2F7C2E #2E567C #7B2E7C #7C542E
square
#2F7C2E #2E567C #7B2E7C #7C542E
split-complementary
#2F7C2E #542E7C #7C2E56
monochromatic
#0D230D #1E4F1D #2F7C2E #40A93F #62C460

Accessibility & contrast

On white

5.19
#2F7C2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#2F7C2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7C2E
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7C2E#FFFFFF#000000##FFFFFF
##2F7C2E1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7125
Deuteranopia (green-blind)
#756A34
Tritanopia (blue-blind)
#21786B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f7c2e;
/* rgb */ color: rgb(47, 124, 46);
/* oklch */ color: oklch(52.0% 0.136 143.1);
Tailwind
colors: {
  custom: {
    50: '#71a36a',
    500: '#2f7c2e',
    950: '#000000',
  },
}
SCSS
$custom: #2f7c2e;
$custom-light: #71a36a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7c2e",
  "rgb": {
    "r": 47,
    "g": 124,
    "b": 46
  },
  "hsl": {
    "h": 119.231,
    "s": 45.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52047,
    "c": 0.13634,
    "h": 143.1
  },
  "luminance": 0.15217
}

Semantic roles & 50–950 ramp

primary
#2F7C2E
secondary
#AA5BAB
accent
#52D6D4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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