#2F7C15#2F7C15

#2F7C15 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.153 H 139.5°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2F7C15
RGBrgb(47, 124, 21)
HSLhsl(105, 71%, 28%)
HSVhsv(105, 83%, 49%)
CMYKcmyk(62.1%, 0%, 83.1%, 51.4%)
CIE-LABlab(45.73, -42.37, 44.91)
CIE-LCHlch(45.73, 61.74, 133.33°)
OKLaboklab(51.82% -0.1166 0.0996)
OKLCHoklch(51.82% 0.153 139.5)
XYZxyz(8.5149, 15.0730, 3.1700)
Luminance0.1507 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7C15 #62157C
analogous
#627C15 #2F7C15 #157C2E
triadic
#2F7C15 #152F7C #7C152F
tetradic
#2F7C15 #15627C #62157C #7C2E15
square
#2F7C15 #15627C #62157C #7C2E15
split-complementary
#2F7C15 #2E157C #7C1562
monochromatic
#0A1A04 #1B480C #2F7C15 #43B01E #5BDC30

Accessibility & contrast

On white

5.23
#2F7C15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#2F7C15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7C15
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7C15#FFFFFF#000000##FFFFFF
##2F7C151.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#766A21
Tritanopia (blue-blind)
#257869
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7c15;
/* rgb */ color: rgb(47, 124, 21);
/* oklch */ color: oklch(51.8% 0.153 139.5);
Tailwind
colors: {
  custom: {
    50: '#72a35c',
    500: '#2f7c15',
    950: '#000000',
  },
}
SCSS
$custom: #2f7c15;
$custom-light: #72a35c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7c15",
  "rgb": {
    "r": 47,
    "g": 124,
    "b": 21
  },
  "hsl": {
    "h": 104.854,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51824,
    "c": 0.15334,
    "h": 139.5
  },
  "luminance": 0.15074
}

Semantic roles & 50–950 ramp

primary
#2F7C15
secondary
#943CB1
accent
#3AEEC0
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2F7C15

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

Preview Lab → · Contrast checker → · Palette generator →

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