#2F7F15#2F7F15

#2F7F15 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.7% C 0.157 H 139.7°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#2F7F15
RGBrgb(47, 127, 21)
HSLhsl(105, 72%, 29%)
HSVhsv(105, 83%, 50%)
CMYKcmyk(63%, 0%, 83.5%, 50.2%)
CIE-LABlab(46.76, -43.49, 45.87)
CIE-LCHlch(46.76, 63.21, 133.48°)
OKLaboklab(52.67% -0.1196 0.1016)
OKLCHoklch(52.67% 0.157 139.7)
XYZxyz(8.8966, 15.8364, 3.2972)
Luminance0.1584 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F15 #65157F
analogous
#647F15 #2F7F15 #157F30
triadic
#2F7F15 #152F7F #7F152F
tetradic
#2F7F15 #15647F #65157F #7F3015
square
#2F7F15 #15647F #65157F #7F3015
split-complementary
#2F7F15 #30157F #7F1564
monochromatic
#0A1A04 #1C4A0C #2F7F15 #42B41E #5BDD31

Accessibility & contrast

On white

5.04
#2F7F15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F7F15
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7F15#FFFFFF#000000##FFFFFF
##2F7F151.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f7f15;
/* rgb */ color: rgb(47, 127, 21);
/* oklch */ color: oklch(52.7% 0.157 139.7);
Tailwind
colors: {
  custom: {
    50: '#73a55d',
    500: '#2f7f15',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f15;
$custom-light: #73a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f15",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 21
  },
  "hsl": {
    "h": 105.283,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52672,
    "c": 0.15694,
    "h": 139.7
  },
  "luminance": 0.15837
}

Semantic roles & 50–950 ramp

primary
#2F7F15
secondary
#973CB4
accent
#39EEC2
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7F15

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

Preview Lab → · Contrast checker → · Palette generator →

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