#2F7E15#2F7E15

#2F7E15 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.156 H 139.6°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#2F7E15
RGBrgb(47, 126, 21)
HSLhsl(105, 71%, 29%)
HSVhsv(105, 83%, 49%)
CMYKcmyk(62.7%, 0%, 83.3%, 50.6%)
CIE-LABlab(46.42, -43.12, 45.55)
CIE-LCHlch(46.42, 62.72, 133.43°)
OKLaboklab(52.39% -0.1186 0.1009)
OKLCHoklch(52.39% 0.156 139.6)
XYZxyz(8.7681, 15.5794, 3.2544)
Luminance0.1558 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E15 #64157E
analogous
#647E15 #2F7E15 #157E30
triadic
#2F7E15 #152F7E #7E152F
tetradic
#2F7E15 #15647E #64157E #7E3015
square
#2F7E15 #15647E #64157E #7E3015
split-complementary
#2F7E15 #30157E #7E1564
monochromatic
#0A1A04 #1B4A0C #2F7E15 #43B21E #5BDD31

Accessibility & contrast

On white

5.10
#2F7E15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2F7E15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7E15
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7E15#FFFFFF#000000##FFFFFF
##2F7E151.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#786C22
Tritanopia (blue-blind)
#257A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7e15;
/* rgb */ color: rgb(47, 126, 21);
/* oklch */ color: oklch(52.4% 0.156 139.6);
Tailwind
colors: {
  custom: {
    50: '#72a45d',
    500: '#2f7e15',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e15;
$custom-light: #72a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e15",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 21
  },
  "hsl": {
    "h": 105.143,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52389,
    "c": 0.15574,
    "h": 139.6
  },
  "luminance": 0.1558
}

Semantic roles & 50–950 ramp

primary
#2F7E15
secondary
#963CB3
accent
#3AEEC1
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7E15

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

Preview Lab → · Contrast checker → · Palette generator →

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