#2F712B#2F712B

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

Color values

HEX#2F712B
RGBrgb(47, 113, 43)
HSLhsl(117, 45%, 31%)
HSVhsv(117, 62%, 44%)
CMYKcmyk(58.4%, 0%, 61.9%, 55.7%)
CIE-LABlab(42.14, -36.00, 32.03)
CIE-LCHlch(42.14, 48.19, 138.35°)
OKLaboklab(48.91% -0.0981 0.0754)
OKLCHoklch(48.91% 0.124 142.5)
XYZxyz(7.5131, 12.5884, 4.3189)
Luminance0.1259 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F712B #6D2B71
analogous
#52712B #2F712B #2B714A
triadic
#2F712B #2B2F71 #712B2F
tetradic
#2F712B #2B5271 #6D2B71 #714A2B
square
#2F712B #2B5271 #6D2B71 #714A2B
split-complementary
#2F712B #4A2B71 #712B52
monochromatic
#0A1809 #1D451A #2F712B #419D3C #5DBF57

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F712B#FFFFFF#000000##FFFFFF
##2F712B1.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)
#746724
Deuteranopia (green-blind)
#6B6131
Tritanopia (blue-blind)
#256E62
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2f712b;
/* rgb */ color: rgb(47, 113, 43);
/* oklch */ color: oklch(48.9% 0.124 142.5);
Tailwind
colors: {
  custom: {
    50: '#6f9a67',
    500: '#2f712b',
    950: '#000000',
  },
}
SCSS
$custom: #2f712b;
$custom-light: #6f9a67;
$custom-dark: #000000;
JSON
{
  "hex": "#2f712b",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 43
  },
  "hsl": {
    "h": 116.571,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.4891,
    "c": 0.12368,
    "h": 142.5
  },
  "luminance": 0.12589
}

Semantic roles & 50–950 ramp

primary
#2F712B
secondary
#9E55A3
accent
#53D5CD
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#080E06
muted
#7B7E7A

Preview Lab

Preview with #2F712B

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

Preview Lab → · Contrast checker → · Palette generator →

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