#2F7B2A#2F7B2A

#2F7B2A is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.7% C 0.138 H 142.3°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#2F7B2A
RGBrgb(47, 123, 42)
HSLhsl(116, 49%, 32%)
HSVhsv(116, 66%, 48%)
CMYKcmyk(61.8%, 0%, 65.9%, 51.8%)
CIE-LABlab(45.55, -40.19, 36.38)
CIE-LCHlch(45.55, 54.21, 137.85°)
OKLaboklab(51.72% -0.1095 0.0846)
OKLCHoklch(51.72% 0.138 142.3)
XYZxyz(8.6727, 14.9366, 4.6161)
Luminance0.1494 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7B2A #762A7B
analogous
#587B2A #2F7B2A #2A7B4D
triadic
#2F7B2A #2A2F7B #7B2A2F
tetradic
#2F7B2A #2A587B #762A7B #7B4D2A
square
#2F7B2A #2A587B #762A7B #7B4D2A
split-complementary
#2F7B2A #4D2A7B #7B2A58
monochromatic
#0C200B #1E4D1A #2F7B2A #40A93A #60C659

Accessibility & contrast

On white

5.27
#2F7B2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#2F7B2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7B2A
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7B2A#FFFFFF#000000##FFFFFF
##2F7B2A1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7020
Deuteranopia (green-blind)
#746931
Tritanopia (blue-blind)
#22776A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7b2a;
/* rgb */ color: rgb(47, 123, 42);
/* oklch */ color: oklch(51.7% 0.138 142.3);
Tailwind
colors: {
  custom: {
    50: '#71a267',
    500: '#2f7b2a',
    950: '#000000',
  },
}
SCSS
$custom: #2f7b2a;
$custom-light: #71a267;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7b2a",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 42
  },
  "hsl": {
    "h": 116.296,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.51719,
    "c": 0.13834,
    "h": 142.3
  },
  "luminance": 0.14937
}

Semantic roles & 50–950 ramp

primary
#2F7B2A
secondary
#A755AC
accent
#4FD9D0
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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