#2F7B28#2F7B28

#2F7B28 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.7% C 0.140 H 141.9°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#2F7B28
RGBrgb(47, 123, 40)
HSLhsl(115, 51%, 32%)
HSVhsv(115, 67%, 48%)
CMYKcmyk(61.8%, 0%, 67.5%, 51.8%)
CIE-LABlab(45.53, -40.41, 37.28)
CIE-LCHlch(45.53, 54.98, 137.30°)
OKLaboklab(51.7% -0.1102 0.0863)
OKLCHoklch(51.7% 0.14 141.9)
XYZxyz(8.6378, 14.9227, 4.4322)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7B28 #74287B
analogous
#597B28 #2F7B28 #287B4B
triadic
#2F7B28 #282F7B #7B282F
tetradic
#2F7B28 #28597B #74287B #7B4B28
square
#2F7B28 #28597B #74287B #7B4B28
split-complementary
#2F7B28 #4B287B #7B2859
monochromatic
#0C1F0A #1D4D19 #2F7B28 #41A937 #5FC856

Accessibility & contrast

On white

5.27
#2F7B28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#2F7B28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7B28
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7B28#FFFFFF#000000##FFFFFF
##2F7B281.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E701E
Deuteranopia (green-blind)
#74692F
Tritanopia (blue-blind)
#23776A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7b28;
/* rgb */ color: rgb(47, 123, 40);
/* oklch */ color: oklch(51.7% 0.140 141.9);
Tailwind
colors: {
  custom: {
    50: '#71a266',
    500: '#2f7b28',
    950: '#000000',
  },
}
SCSS
$custom: #2f7b28;
$custom-light: #71a266;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7b28",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 40
  },
  "hsl": {
    "h": 114.94,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.51697,
    "c": 0.13993,
    "h": 141.9
  },
  "luminance": 0.14923
}

Semantic roles & 50–950 ramp

primary
#2F7B28
secondary
#A552AD
accent
#4DDACF
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7B28

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

Preview Lab → · Contrast checker → · Palette generator →

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