#2F7E1C#2F7E1C

#2F7E1C is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.152 H 140.3°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#2F7E1C
RGBrgb(47, 126, 28)
HSLhsl(108, 64%, 30%)
HSVhsv(108, 78%, 49%)
CMYKcmyk(62.7%, 0%, 77.8%, 50.6%)
CIE-LABlab(46.46, -42.66, 43.23)
CIE-LCHlch(46.46, 60.73, 134.62°)
OKLaboklab(52.43% -0.117 0.0971)
OKLCHoklch(52.43% 0.152 140.3)
XYZxyz(8.8423, 15.6091, 3.6453)
Luminance0.1561 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E1C #6B1C7E
analogous
#607E1C #2F7E1C #1C7E3A
triadic
#2F7E1C #1C2F7E #7E1C2F
tetradic
#2F7E1C #1C607E #6B1C7E #7E3A1C
square
#2F7E1C #1C607E #6B1C7E #7E3A1C
split-complementary
#2F7E1C #3A1C7E #7E1C60
monochromatic
#0A1A06 #1C4C11 #2F7E1C #42B027 #5DD540

Accessibility & contrast

On white

5.09
#2F7E1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2F7E1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7E1C
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7E1C#FFFFFF#000000##FFFFFF
##2F7E1C1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827207
Deuteranopia (green-blind)
#786C27
Tritanopia (blue-blind)
#247A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7e1c;
/* rgb */ color: rgb(47, 126, 28);
/* oklch */ color: oklch(52.4% 0.152 140.3);
Tailwind
colors: {
  custom: {
    50: '#72a460',
    500: '#2f7e1c',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e1c;
$custom-light: #72a460;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e1c",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 28
  },
  "hsl": {
    "h": 108.367,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52434,
    "c": 0.15203,
    "h": 140.3
  },
  "luminance": 0.1561
}

Semantic roles & 50–950 ramp

primary
#2F7E1C
secondary
#9C44B2
accent
#41E7C7
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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