#2F712A#2F712A

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

Color values

HEX#2F712A
RGBrgb(47, 113, 42)
HSLhsl(116, 46%, 30%)
HSVhsv(116, 63%, 44%)
CMYKcmyk(58.4%, 0%, 62.8%, 55.7%)
CIE-LABlab(42.13, -36.13, 32.51)
CIE-LCHlch(42.13, 48.60, 138.01°)
OKLaboklab(48.9% -0.0984 0.0763)
OKLCHoklch(48.9% 0.125 142.2)
XYZxyz(7.4950, 12.5811, 4.2235)
Luminance0.1258 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F712A #6C2A71
analogous
#52712A #2F712A #2A7149
triadic
#2F712A #2A2F71 #712A2F
tetradic
#2F712A #2A5271 #6C2A71 #71492A
square
#2F712A #2A5271 #6C2A71 #71492A
split-complementary
#2F712A #492A71 #712A52
monochromatic
#0A1809 #1C4419 #2F712A #429E3B #5DC055

Accessibility & contrast

On white

5.97
#2F712A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F712A
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F712A#FFFFFF#000000##FFFFFF
##2F712A1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f712a;
/* rgb */ color: rgb(47, 113, 42);
/* oklch */ color: oklch(48.9% 0.125 142.2);
Tailwind
colors: {
  custom: {
    50: '#6f9a66',
    500: '#2f712a',
    950: '#000000',
  },
}
SCSS
$custom: #2f712a;
$custom-light: #6f9a66;
$custom-dark: #000000;
JSON
{
  "hex": "#2f712a",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 42
  },
  "hsl": {
    "h": 115.775,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.48898,
    "c": 0.12457,
    "h": 142.2
  },
  "luminance": 0.12582
}

Semantic roles & 50–950 ramp

primary
#2F712A
secondary
#9D54A3
accent
#52D5CC
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080E06
muted
#7B7E7A

Preview Lab

Preview with #2F712A

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

Preview Lab → · Contrast checker → · Palette generator →

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