#2F7D1B#2F7D1B

#2F7D1B is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.1% C 0.151 H 140.1°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#2F7D1B
RGBrgb(47, 125, 27)
HSLhsl(108, 64%, 30%)
HSVhsv(108, 78%, 49%)
CMYKcmyk(62.4%, 0%, 78.4%, 51%)
CIE-LABlab(46.11, -42.35, 43.25)
CIE-LCHlch(46.11, 60.53, 134.40°)
OKLaboklab(52.15% -0.1162 0.097)
OKLCHoklch(52.15% 0.151 140.1)
XYZxyz(8.7033, 15.3499, 3.5409)
Luminance0.1535 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7D1B #691B7D
analogous
#607D1B #2F7D1B #1B7D38
triadic
#2F7D1B #1B2F7D #7D1B2F
tetradic
#2F7D1B #1B607D #691B7D #7D381B
square
#2F7D1B #1B607D #691B7D #7D381B
split-complementary
#2F7D1B #381B7D #7D1B60
monochromatic
#091905 #1C4B10 #2F7D1B #42AF26 #5CD53D

Accessibility & contrast

On white

5.16
#2F7D1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#2F7D1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7D1B
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7D1B#FFFFFF#000000##FFFFFF
##2F7D1B1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817105
Deuteranopia (green-blind)
#776B26
Tritanopia (blue-blind)
#24796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f7d1b;
/* rgb */ color: rgb(47, 125, 27);
/* oklch */ color: oklch(52.1% 0.151 140.1);
Tailwind
colors: {
  custom: {
    50: '#72a35f',
    500: '#2f7d1b',
    950: '#000000',
  },
}
SCSS
$custom: #2f7d1b;
$custom-light: #72a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7d1b",
  "rgb": {
    "r": 47,
    "g": 125,
    "b": 27
  },
  "hsl": {
    "h": 107.755,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52145,
    "c": 0.15138,
    "h": 140.1
  },
  "luminance": 0.15351
}

Semantic roles & 50–950 ramp

primary
#2F7D1B
secondary
#9A43B1
accent
#40E7C5
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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