#2F7312#2F7312

#2F7312 is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.3% C 0.144 H 138.6°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#2F7312
RGBrgb(47, 115, 18)
HSLhsl(102, 73%, 26%)
HSVhsv(102, 84%, 45%)
CMYKcmyk(59.1%, 0%, 84.3%, 54.9%)
CIE-LABlab(42.63, -39.08, 42.95)
CIE-LCHlch(42.63, 58.07, 132.30°)
OKLaboklab(49.25% -0.1079 0.095)
OKLCHoklch(49.25% 0.144 138.6)
XYZxyz(7.4119, 12.9089, 2.6732)
Luminance0.1291 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7312 #561273
analogous
#5F7312 #2F7312 #127325
triadic
#2F7312 #122F73 #73122F
tetradic
#2F7312 #125F73 #561273 #732512
square
#2F7312 #125F73 #561273 #732512
split-complementary
#2F7312 #251273 #73125F
monochromatic
#0B1A04 #193E0A #2F7312 #45A81A #5ADD23

Accessibility & contrast

On white

5.86
#2F7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#2F7312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7312
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7312#FFFFFF#000000##FFFFFF
##2F73121.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#6E631E
Tritanopia (blue-blind)
#286F61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2f7312;
/* rgb */ color: rgb(47, 115, 18);
/* oklch */ color: oklch(49.3% 0.144 138.6);
Tailwind
colors: {
  custom: {
    50: '#709c5a',
    500: '#2f7312',
    950: '#000000',
  },
}
SCSS
$custom: #2f7312;
$custom-light: #709c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7312",
  "rgb": {
    "r": 47,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 102.062,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.4925,
    "c": 0.1438,
    "h": 138.6
  },
  "luminance": 0.12909
}

Semantic roles & 50–950 ramp

primary
#2F7312
secondary
#8737AA
accent
#38F0B9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7312

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

Preview Lab → · Contrast checker → · Palette generator →

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