#2F7D2A#2F7D2A

#2F7D2A is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.3% C 0.141 H 142.3°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#2F7D2A
RGBrgb(47, 125, 42)
HSLhsl(116, 50%, 33%)
HSVhsv(116, 66%, 49%)
CMYKcmyk(62.4%, 0%, 66.4%, 51%)
CIE-LABlab(46.23, -40.98, 37.13)
CIE-LCHlch(46.23, 55.30, 137.82°)
OKLaboklab(52.28% -0.1116 0.0862)
OKLCHoklch(52.28% 0.141 142.3)
XYZxyz(8.9233, 15.4379, 4.6996)
Luminance0.1544 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7D2A #782A7D
analogous
#587D2A #2F7D2A #2A7D4F
triadic
#2F7D2A #2A2F7D #7D2A2F
tetradic
#2F7D2A #2A587D #782A7D #7D4F2A
square
#2F7D2A #2A587D #782A7D #7D4F2A
split-complementary
#2F7D2A #4F2A7D #7D2A58
monochromatic
#0D210B #1E4F1B #2F7D2A #40AB39 #60C85A

Accessibility & contrast

On white

5.14
#2F7D2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#2F7D2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7D2A
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7D2A#FFFFFF#000000##FFFFFF
##2F7D2A1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807220
Deuteranopia (green-blind)
#766B31
Tritanopia (blue-blind)
#22796C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f7d2a;
/* rgb */ color: rgb(47, 125, 42);
/* oklch */ color: oklch(52.3% 0.141 142.3);
Tailwind
colors: {
  custom: {
    50: '#71a367',
    500: '#2f7d2a',
    950: '#000000',
  },
}
SCSS
$custom: #2f7d2a;
$custom-light: #71a367;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7d2a",
  "rgb": {
    "r": 47,
    "g": 125,
    "b": 42
  },
  "hsl": {
    "h": 116.386,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52281,
    "c": 0.14101,
    "h": 142.3
  },
  "luminance": 0.15439
}

Semantic roles & 50–950 ramp

primary
#2F7D2A
secondary
#A856AD
accent
#4FD9D1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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