#2F7D12#2F7D12

#2F7D12 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.156 H 139.3°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#2F7D12
RGBrgb(47, 125, 18)
HSLhsl(104, 75%, 28%)
HSVhsv(104, 86%, 49%)
CMYKcmyk(62.4%, 0%, 85.6%, 51%)
CIE-LABlab(46.06, -42.91, 46.10)
CIE-LCHlch(46.06, 62.98, 132.95°)
OKLaboklab(52.09% -0.1182 0.1017)
OKLCHoklch(52.09% 0.156 139.3)
XYZxyz(8.6147, 15.3145, 3.0742)
Luminance0.1532 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7D12 #60127D
analogous
#647D12 #2F7D12 #127D2A
triadic
#2F7D12 #122F7D #7D122F
tetradic
#2F7D12 #12647D #60127D #7D2A12
square
#2F7D12 #12647D #60127D #7D2A12
split-complementary
#2F7D12 #2A127D #7D1264
monochromatic
#0A1B04 #1B480A #2F7D12 #43B21A #5BE029

Accessibility & contrast

On white

5.17
#2F7D12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2F7D12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7D12
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7D12#FFFFFF#000000##FFFFFF
##2F7D121.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#776B20
Tritanopia (blue-blind)
#25796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f7d12;
/* rgb */ color: rgb(47, 125, 18);
/* oklch */ color: oklch(52.1% 0.156 139.3);
Tailwind
colors: {
  custom: {
    50: '#72a35b',
    500: '#2f7d12',
    950: '#000000',
  },
}
SCSS
$custom: #2f7d12;
$custom-light: #72a35b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7d12",
  "rgb": {
    "r": 47,
    "g": 125,
    "b": 18
  },
  "hsl": {
    "h": 103.738,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.5209,
    "c": 0.1559,
    "h": 139.3
  },
  "luminance": 0.15315
}

Semantic roles & 50–950 ramp

primary
#2F7D12
secondary
#9238B3
accent
#36F1BF
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2F7D12

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

Preview Lab → · Contrast checker → · Palette generator →

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