#2F7012#2F7012

#2F7012 is a mid, vivid green. Relative luminance 0.122; OKLCH L 48.4% C 0.140 H 138.4°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#2F7012
RGBrgb(47, 112, 18)
HSLhsl(101, 72%, 25%)
HSVhsv(101, 84%, 44%)
CMYKcmyk(58%, 0%, 83.9%, 56.1%)
CIE-LABlab(41.59, -37.89, 41.99)
CIE-LCHlch(41.59, 56.56, 132.07°)
OKLaboklab(48.39% -0.1047 0.093)
OKLCHoklch(48.39% 0.14 138.4)
XYZxyz(7.0754, 12.2358, 2.5610)
Luminance0.1224 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7012 #531270
analogous
#5E7012 #2F7012 #127024
triadic
#2F7012 #122F70 #70122F
tetradic
#2F7012 #125E70 #531270 #702412
square
#2F7012 #125E70 #531270 #702412
split-complementary
#2F7012 #241270 #70125E
monochromatic
#0B1A04 #193B0A #2F7012 #45A51A #5BD923

Accessibility & contrast

On white

6.09
#2F7012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#2F7012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7012
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7012#FFFFFF#000000##FFFFFF
##2F70121.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746500
Deuteranopia (green-blind)
#6C601D
Tritanopia (blue-blind)
#296C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f7012;
/* rgb */ color: rgb(47, 112, 18);
/* oklch */ color: oklch(48.4% 0.140 138.4);
Tailwind
colors: {
  custom: {
    50: '#709a59',
    500: '#2f7012',
    950: '#000000',
  },
}
SCSS
$custom: #2f7012;
$custom-light: #709a59;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7012",
  "rgb": {
    "r": 47,
    "g": 112,
    "b": 18
  },
  "hsl": {
    "h": 101.489,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.48393,
    "c": 0.14008,
    "h": 138.4
  },
  "luminance": 0.12236
}

Semantic roles & 50–950 ramp

primary
#2F7012
secondary
#8437A7
accent
#39EFB7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7012

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

Preview Lab → · Contrast checker → · Palette generator →

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