#2F7F1D#2F7F1D

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

Color values

HEX#2F7F1D
RGBrgb(47, 127, 29)
HSLhsl(109, 63%, 31%)
HSVhsv(109, 77%, 50%)
CMYKcmyk(63%, 0%, 77.2%, 50.2%)
CIE-LABlab(46.80, -42.96, 43.20)
CIE-LCHlch(46.80, 60.92, 134.84°)
OKLaboklab(52.72% -0.1177 0.0972)
OKLCHoklch(52.72% 0.153 140.4)
XYZxyz(8.9830, 15.8710, 3.7522)
Luminance0.1587 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F1D #6D1D7F
analogous
#607F1D #2F7F1D #1D7F3C
triadic
#2F7F1D #1D2F7F #7F1D2F
tetradic
#2F7F1D #1D607F #6D1D7F #7F3C1D
square
#2F7F1D #1D607F #6D1D7F #7F3C1D
split-complementary
#2F7F1D #3C1D7F #7F1D60
monochromatic
#0A1B06 #1D4D12 #2F7F1D #41B128 #5DD442

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F7F1D#FFFFFF#000000##FFFFFF
##2F7F1D1.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)
#837309
Deuteranopia (green-blind)
#796C27
Tritanopia (blue-blind)
#237B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7f1d;
/* rgb */ color: rgb(47, 127, 29);
/* oklch */ color: oklch(52.7% 0.153 140.4);
Tailwind
colors: {
  custom: {
    50: '#72a560',
    500: '#2f7f1d',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f1d;
$custom-light: #72a560;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f1d",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 29
  },
  "hsl": {
    "h": 108.98,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52724,
    "c": 0.15268,
    "h": 140.4
  },
  "luminance": 0.15872
}

Semantic roles & 50–950 ramp

primary
#2F7F1D
secondary
#9E45B2
accent
#42E6C8
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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