#2F7F1B#2F7F1B

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

Color values

HEX#2F7F1B
RGBrgb(47, 127, 27)
HSLhsl(108, 65%, 30%)
HSVhsv(108, 79%, 50%)
CMYKcmyk(63%, 0%, 78.7%, 50.2%)
CIE-LABlab(46.79, -43.10, 43.92)
CIE-LCHlch(46.79, 61.54, 134.47°)
OKLaboklab(52.71% -0.1182 0.0984)
OKLCHoklch(52.71% 0.154 140.2)
XYZxyz(8.9591, 15.8614, 3.6261)
Luminance0.1586 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F1B #6B1B7F
analogous
#617F1B #2F7F1B #1B7F39
triadic
#2F7F1B #1B2F7F #7F1B2F
tetradic
#2F7F1B #1B617F #6B1B7F #7F391B
square
#2F7F1B #1B617F #6B1B7F #7F391B
split-complementary
#2F7F1B #391B7F #7F1B61
monochromatic
#0A1A06 #1C4D10 #2F7F1B #42B126 #5DD63E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F7F1B#FFFFFF#000000##FFFFFF
##2F7F1B1.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)
#837304
Deuteranopia (green-blind)
#796C26
Tritanopia (blue-blind)
#247B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7f1b;
/* rgb */ color: rgb(47, 127, 27);
/* oklch */ color: oklch(52.7% 0.154 140.2);
Tailwind
colors: {
  custom: {
    50: '#72a55f',
    500: '#2f7f1b',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f1b;
$custom-light: #72a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f1b",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 27
  },
  "hsl": {
    "h": 108,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52709,
    "c": 0.15383,
    "h": 140.2
  },
  "luminance": 0.15862
}

Semantic roles & 50–950 ramp

primary
#2F7F1B
secondary
#9C43B3
accent
#40E8C6
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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