#2F7A2A#2F7A2A

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

Color values

HEX#2F7A2A
RGBrgb(47, 122, 42)
HSLhsl(116, 49%, 32%)
HSVhsv(116, 66%, 48%)
CMYKcmyk(61.5%, 0%, 65.6%, 52.2%)
CIE-LABlab(45.21, -39.79, 36.00)
CIE-LCHlch(45.21, 53.66, 137.87°)
OKLaboklab(51.44% -0.1084 0.0838)
OKLCHoklch(51.44% 0.137 142.3)
XYZxyz(8.5493, 14.6898, 4.5749)
Luminance0.1469 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7A2A #752A7A
analogous
#577A2A #2F7A2A #2A7A4D
triadic
#2F7A2A #2A2F7A #7A2A2F
tetradic
#2F7A2A #2A577A #752A7A #7A4D2A
square
#2F7A2A #2A577A #752A7A #7A4D2A
split-complementary
#2F7A2A #4D2A7A #7A2A57
monochromatic
#0C1F0B #1D4C1A #2F7A2A #41A83A #5FC659

Accessibility & contrast

On white

5.33
#2F7A2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F7A2A
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7A2A#FFFFFF#000000##FFFFFF
##2F7A2A1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F21
Deuteranopia (green-blind)
#736931
Tritanopia (blue-blind)
#237669
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7a2a;
/* rgb */ color: rgb(47, 122, 42);
/* oklch */ color: oklch(51.4% 0.137 142.3);
Tailwind
colors: {
  custom: {
    50: '#71a167',
    500: '#2f7a2a',
    950: '#000000',
  },
}
SCSS
$custom: #2f7a2a;
$custom-light: #71a167;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7a2a",
  "rgb": {
    "r": 47,
    "g": 122,
    "b": 42
  },
  "hsl": {
    "h": 116.25,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51437,
    "c": 0.13699,
    "h": 142.3
  },
  "luminance": 0.14691
}

Semantic roles & 50–950 ramp

primary
#2F7A2A
secondary
#A655AB
accent
#4FD8D0
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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