#2F7B12#2F7B12

#2F7B12 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.5% C 0.154 H 139.2°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#2F7B12
RGBrgb(47, 123, 18)
HSLhsl(103, 74%, 28%)
HSVhsv(103, 85%, 48%)
CMYKcmyk(61.8%, 0%, 85.4%, 51.8%)
CIE-LABlab(45.38, -42.16, 45.48)
CIE-LCHlch(45.38, 62.01, 132.83°)
OKLaboklab(51.52% -0.1162 0.1003)
OKLCHoklch(51.52% 0.154 139.2)
XYZxyz(8.3641, 14.8132, 2.9906)
Luminance0.1481 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7B12 #5E127B
analogous
#637B12 #2F7B12 #127B2A
triadic
#2F7B12 #122F7B #7B122F
tetradic
#2F7B12 #12637B #5E127B #7B2A12
square
#2F7B12 #12637B #5E127B #7B2A12
split-complementary
#2F7B12 #2A127B #7B1263
monochromatic
#0A1B04 #1B460A #2F7B12 #43B01A #5BE028

Accessibility & contrast

On white

5.30
#2F7B12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#2F7B12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7B12
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7B12#FFFFFF#000000##FFFFFF
##2F7B121.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#76691F
Tritanopia (blue-blind)
#267768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7b12;
/* rgb */ color: rgb(47, 123, 18);
/* oklch */ color: oklch(51.5% 0.154 139.2);
Tailwind
colors: {
  custom: {
    50: '#72a25b',
    500: '#2f7b12',
    950: '#000000',
  },
}
SCSS
$custom: #2f7b12;
$custom-light: #72a25b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7b12",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 18
  },
  "hsl": {
    "h": 103.429,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.51524,
    "c": 0.15351,
    "h": 139.2
  },
  "luminance": 0.14814
}

Semantic roles & 50–950 ramp

primary
#2F7B12
secondary
#9038B1
accent
#37F1BE
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2F7B12

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

Preview Lab → · Contrast checker → · Palette generator →

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