#2F7E2A#2F7E2A

#2F7E2A is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.6% C 0.142 H 142.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#2F7E2A
RGBrgb(47, 126, 42)
HSLhsl(116, 50%, 33%)
HSVhsv(116, 67%, 49%)
CMYKcmyk(62.7%, 0%, 66.7%, 50.6%)
CIE-LABlab(46.57, -41.37, 37.51)
CIE-LCHlch(46.57, 55.84, 137.80°)
OKLaboklab(52.56% -0.1126 0.087)
OKLCHoklch(52.56% 0.142 142.3)
XYZxyz(9.0506, 15.6924, 4.7420)
Luminance0.1569 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E2A #792A7E
analogous
#597E2A #2F7E2A #2A7E4F
triadic
#2F7E2A #2A2F7E #7E2A2F
tetradic
#2F7E2A #2A597E #792A7E #7E4F2A
square
#2F7E2A #2A597E #792A7E #7E4F2A
split-complementary
#2F7E2A #4F2A7E #7E2A59
monochromatic
#0D220B #1E501B #2F7E2A #40AC39 #61C85A

Accessibility & contrast

On white

5.07
#2F7E2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F7E2A
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7E2A#FFFFFF#000000##FFFFFF
##2F7E2A1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817220
Deuteranopia (green-blind)
#776C31
Tritanopia (blue-blind)
#217A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7e2a;
/* rgb */ color: rgb(47, 126, 42);
/* oklch */ color: oklch(52.6% 0.142 142.3);
Tailwind
colors: {
  custom: {
    50: '#71a467',
    500: '#2f7e2a',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e2a;
$custom-light: #71a467;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e2a",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 42
  },
  "hsl": {
    "h": 116.429,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.52562,
    "c": 0.14233,
    "h": 142.3
  },
  "luminance": 0.15693
}

Semantic roles & 50–950 ramp

primary
#2F7E2A
secondary
#A856AE
accent
#4EDAD1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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