#2F7212#2F7212

#2F7212 is a mid, vivid green. Relative luminance 0.127; OKLCH L 49.0% C 0.143 H 138.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#2F7212
RGBrgb(47, 114, 18)
HSLhsl(102, 73%, 26%)
HSVhsv(102, 84%, 45%)
CMYKcmyk(58.8%, 0%, 84.2%, 55.3%)
CIE-LABlab(42.28, -38.69, 42.63)
CIE-LCHlch(42.28, 57.57, 132.22°)
OKLaboklab(48.97% -0.1069 0.0944)
OKLCHoklch(48.97% 0.143 138.6)
XYZxyz(7.2985, 12.6820, 2.6354)
Luminance0.1268 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7212 #551272
analogous
#5F7212 #2F7212 #127225
triadic
#2F7212 #122F72 #72122F
tetradic
#2F7212 #125F72 #551272 #722512
square
#2F7212 #125F72 #551272 #722512
split-complementary
#2F7212 #251272 #72125F
monochromatic
#0B1A04 #193D0A #2F7212 #45A71A #5BDC23

Accessibility & contrast

On white

5.94
#2F7212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#2F7212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7212
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7212#FFFFFF#000000##FFFFFF
##2F72121.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766700
Deuteranopia (green-blind)
#6D621E
Tritanopia (blue-blind)
#296E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f7212;
/* rgb */ color: rgb(47, 114, 18);
/* oklch */ color: oklch(49.0% 0.143 138.6);
Tailwind
colors: {
  custom: {
    50: '#709b59',
    500: '#2f7212',
    950: '#000000',
  },
}
SCSS
$custom: #2f7212;
$custom-light: #709b59;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7212",
  "rgb": {
    "r": 47,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 101.875,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48965,
    "c": 0.14256,
    "h": 138.6
  },
  "luminance": 0.12683
}

Semantic roles & 50–950 ramp

primary
#2F7212
secondary
#8637A9
accent
#38EFB8
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7212

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

Preview Lab → · Contrast checker → · Palette generator →

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