#2F7F1E#2F7F1E

#2F7F1E is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.7% C 0.152 H 140.6°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#2F7F1E
RGBrgb(47, 127, 30)
HSLhsl(109, 62%, 31%)
HSVhsv(109, 76%, 50%)
CMYKcmyk(63%, 0%, 76.4%, 50.2%)
CIE-LABlab(46.81, -42.88, 42.83)
CIE-LCHlch(46.81, 60.61, 135.03°)
OKLaboklab(52.73% -0.1174 0.0966)
OKLCHoklch(52.73% 0.152 140.6)
XYZxyz(8.9956, 15.8760, 3.8184)
Luminance0.1588 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F1E #6E1E7F
analogous
#5F7F1E #2F7F1E #1E7F3E
triadic
#2F7F1E #1E2F7F #7F1E2F
tetradic
#2F7F1E #1E5F7F #6E1E7F #7F3E1E
square
#2F7F1E #1E5F7F #6E1E7F #7F3E1E
split-complementary
#2F7F1E #3E1E7F #7F1E5F
monochromatic
#0A1C07 #1D4D12 #2F7F1E #41B12A #5DD344

Accessibility & contrast

On white

5.03
#2F7F1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#2F7F1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7F1E
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7F1E#FFFFFF#000000##FFFFFF
##2F7F1E1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730B
Deuteranopia (green-blind)
#796C28
Tritanopia (blue-blind)
#237B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7f1e;
/* rgb */ color: rgb(47, 127, 30);
/* oklch */ color: oklch(52.7% 0.152 140.6);
Tailwind
colors: {
  custom: {
    50: '#72a561',
    500: '#2f7f1e',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f1e;
$custom-light: #72a561;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f1e",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 30
  },
  "hsl": {
    "h": 109.485,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52731,
    "c": 0.15207,
    "h": 140.6
  },
  "luminance": 0.15877
}

Semantic roles & 50–950 ramp

primary
#2F7F1E
secondary
#9F47B2
accent
#43E5C8
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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