#2F7B15#2F7B15

#2F7B15 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.5% C 0.152 H 139.4°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#2F7B15
RGBrgb(47, 123, 21)
HSLhsl(105, 71%, 28%)
HSVhsv(105, 83%, 48%)
CMYKcmyk(61.8%, 0%, 82.9%, 51.8%)
CIE-LABlab(45.39, -41.99, 44.59)
CIE-LCHlch(45.39, 61.25, 133.28°)
OKLaboklab(51.54% -0.1156 0.0989)
OKLCHoklch(51.54% 0.152 139.4)
XYZxyz(8.3902, 14.8236, 3.1284)
Luminance0.1482 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7B15 #61157B
analogous
#627B15 #2F7B15 #157B2E
triadic
#2F7B15 #152F7B #7B152F
tetradic
#2F7B15 #15627B #61157B #7B2E15
square
#2F7B15 #15627B #61157B #7B2E15
split-complementary
#2F7B15 #2E157B #7B1562
monochromatic
#0A1A04 #1B470C #2F7B15 #43AF1E #5BDB2F

Accessibility & contrast

On white

5.30
#2F7B15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#2F7B15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7B15
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7B15#FFFFFF#000000##FFFFFF
##2F7B151.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#756921
Tritanopia (blue-blind)
#267768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7b15;
/* rgb */ color: rgb(47, 123, 21);
/* oklch */ color: oklch(51.5% 0.152 139.4);
Tailwind
colors: {
  custom: {
    50: '#72a25c',
    500: '#2f7b15',
    950: '#000000',
  },
}
SCSS
$custom: #2f7b15;
$custom-light: #72a25c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7b15",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 21
  },
  "hsl": {
    "h": 104.706,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.5154,
    "c": 0.15213,
    "h": 139.4
  },
  "luminance": 0.14824
}

Semantic roles & 50–950 ramp

primary
#2F7B15
secondary
#933BB0
accent
#3AEEC0
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2F7B15

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

Preview Lab → · Contrast checker → · Palette generator →

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