#2F7A15#2F7A15

#2F7A15 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.3% C 0.151 H 139.4°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#2F7A15
RGBrgb(47, 122, 21)
HSLhsl(105, 71%, 28%)
HSVhsv(105, 83%, 48%)
CMYKcmyk(61.5%, 0%, 82.8%, 52.2%)
CIE-LABlab(45.05, -41.61, 44.27)
CIE-LCHlch(45.05, 60.76, 133.23°)
OKLaboklab(51.26% -0.1145 0.0983)
OKLCHoklch(51.26% 0.151 139.4)
XYZxyz(8.2668, 14.5768, 3.0873)
Luminance0.1458 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7A15 #60157A
analogous
#617A15 #2F7A15 #157A2D
triadic
#2F7A15 #152F7A #7A152F
tetradic
#2F7A15 #15617A #60157A #7A2D15
square
#2F7A15 #15617A #60157A #7A2D15
split-complementary
#2F7A15 #2D157A #7A1561
monochromatic
#0A1A04 #1B460C #2F7A15 #43AE1E #5BDB2E

Accessibility & contrast

On white

5.36
#2F7A15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#2F7A15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7A15
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7A15#FFFFFF#000000##FFFFFF
##2F7A151.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#746821
Tritanopia (blue-blind)
#267667
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7a15;
/* rgb */ color: rgb(47, 122, 21);
/* oklch */ color: oklch(51.3% 0.151 139.4);
Tailwind
colors: {
  custom: {
    50: '#72a15c',
    500: '#2f7a15',
    950: '#000000',
  },
}
SCSS
$custom: #2f7a15;
$custom-light: #72a15c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7a15",
  "rgb": {
    "r": 47,
    "g": 122,
    "b": 21
  },
  "hsl": {
    "h": 104.554,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51257,
    "c": 0.15092,
    "h": 139.4
  },
  "luminance": 0.14578
}

Semantic roles & 50–950 ramp

primary
#2F7A15
secondary
#923BAF
accent
#3AEDBF
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2F7A15

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

Preview Lab → · Contrast checker → · Palette generator →

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