#2F7C12#2F7C12

#2F7C12 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.155 H 139.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2F7C12
RGBrgb(47, 124, 18)
HSLhsl(104, 75%, 28%)
HSVhsv(104, 85%, 49%)
CMYKcmyk(62.1%, 0%, 85.5%, 51.4%)
CIE-LABlab(45.72, -42.54, 45.79)
CIE-LCHlch(45.72, 62.50, 132.89°)
OKLaboklab(51.81% -0.1172 0.101)
OKLCHoklch(51.81% 0.155 139.2)
XYZxyz(8.4888, 15.0625, 3.0322)
Luminance0.1506 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7C12 #5F127C
analogous
#647C12 #2F7C12 #127C2A
triadic
#2F7C12 #122F7C #7C122F
tetradic
#2F7C12 #12647C #5F127C #7C2A12
square
#2F7C12 #12647C #5F127C #7C2A12
split-complementary
#2F7C12 #2A127C #7C1264
monochromatic
#0A1B04 #1B470A #2F7C12 #43B11A #5BE029

Accessibility & contrast

On white

5.23
#2F7C12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#2F7C12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7C12
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7C12#FFFFFF#000000##FFFFFF
##2F7C121.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#766A20
Tritanopia (blue-blind)
#267869
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7c12;
/* rgb */ color: rgb(47, 124, 18);
/* oklch */ color: oklch(51.8% 0.155 139.2);
Tailwind
colors: {
  custom: {
    50: '#72a35b',
    500: '#2f7c12',
    950: '#000000',
  },
}
SCSS
$custom: #2f7c12;
$custom-light: #72a35b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7c12",
  "rgb": {
    "r": 47,
    "g": 124,
    "b": 18
  },
  "hsl": {
    "h": 103.585,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.51807,
    "c": 0.15471,
    "h": 139.2
  },
  "luminance": 0.15063
}

Semantic roles & 50–950 ramp

primary
#2F7C12
secondary
#9138B2
accent
#37F1BE
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2F7C12

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

Preview Lab → · Contrast checker → · Palette generator →

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