#2F7F1C#2F7F1C

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

Color values

HEX#2F7F1C
RGBrgb(47, 127, 28)
HSLhsl(108, 64%, 30%)
HSVhsv(108, 78%, 50%)
CMYKcmyk(63%, 0%, 78%, 50.2%)
CIE-LABlab(46.80, -43.03, 43.56)
CIE-LCHlch(46.80, 61.23, 134.65°)
OKLaboklab(52.72% -0.118 0.0978)
OKLCHoklch(52.72% 0.153 140.3)
XYZxyz(8.9708, 15.8661, 3.6881)
Luminance0.1587 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F1C #6C1C7F
analogous
#607F1C #2F7F1C #1C7F3A
triadic
#2F7F1C #1C2F7F #7F1C2F
tetradic
#2F7F1C #1C607F #6C1C7F #7F3A1C
square
#2F7F1C #1C607F #6C1C7F #7F3A1C
split-complementary
#2F7F1C #3A1C7F #7F1C60
monochromatic
#0A1B06 #1C4D11 #2F7F1C #42B127 #5DD540

Accessibility & contrast

On white

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

On black

4.17
#2F7F1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2F7F1C#FFFFFF#000000##FFFFFF
##2F7F1C1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837306
Deuteranopia (green-blind)
#796C27
Tritanopia (blue-blind)
#247B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7f1c;
/* rgb */ color: rgb(47, 127, 28);
/* oklch */ color: oklch(52.7% 0.153 140.3);
Tailwind
colors: {
  custom: {
    50: '#72a560',
    500: '#2f7f1c',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f1c;
$custom-light: #72a560;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f1c",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 108.485,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.52716,
    "c": 0.15326,
    "h": 140.3
  },
  "luminance": 0.15867
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F7F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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