#2F712D#2F712D

#2F712D is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.9% C 0.122 H 142.9°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#2F712D
RGBrgb(47, 113, 45)
HSLhsl(118, 43%, 31%)
HSVhsv(118, 60%, 44%)
CMYKcmyk(58.4%, 0%, 60.2%, 55.7%)
CIE-LABlab(42.16, -35.75, 31.04)
CIE-LCHlch(42.16, 47.34, 139.03°)
OKLaboklab(48.94% -0.0972 0.0734)
OKLCHoklch(48.94% 0.122 142.9)
XYZxyz(7.5507, 12.6034, 4.5169)
Luminance0.1260 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F712D #6F2D71
analogous
#51712D #2F712D #2D714D
triadic
#2F712D #2D2F71 #712D2F
tetradic
#2F712D #2D5171 #6F2D71 #714D2D
square
#2F712D #2D5171 #6F2D71 #714D2D
split-complementary
#2F712D #4D2D71 #712D51
monochromatic
#0B190A #1D451C #2F712D #419D3E #5EBE5B

Accessibility & contrast

On white

5.96
#2F712D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2F712D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F712D
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F712D#FFFFFF#000000##FFFFFF
##2F712D1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736726
Deuteranopia (green-blind)
#6B6132
Tritanopia (blue-blind)
#256E62
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2f712d;
/* rgb */ color: rgb(47, 113, 45);
/* oklch */ color: oklch(48.9% 0.122 142.9);
Tailwind
colors: {
  custom: {
    50: '#6f9a68',
    500: '#2f712d',
    950: '#000000',
  },
}
SCSS
$custom: #2f712d;
$custom-light: #6f9a68;
$custom-dark: #000000;
JSON
{
  "hex": "#2f712d",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 45
  },
  "hsl": {
    "h": 118.235,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.48937,
    "c": 0.12186,
    "h": 142.9
  },
  "luminance": 0.12604
}

Semantic roles & 50–950 ramp

primary
#2F712D
secondary
#A057A3
accent
#55D3CF
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#080E06
muted
#7B7E7A

Preview Lab

Preview with #2F712D

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

Preview Lab → · Contrast checker → · Palette generator →

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