#2F7A27#2F7A27

#2F7A27 is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.4% C 0.139 H 141.7°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#2F7A27
RGBrgb(47, 122, 39)
HSLhsl(114, 52%, 32%)
HSVhsv(114, 68%, 48%)
CMYKcmyk(61.5%, 0%, 68%, 52.2%)
CIE-LABlab(45.18, -40.12, 37.36)
CIE-LCHlch(45.18, 54.82, 137.04°)
OKLaboklab(51.41% -0.1094 0.0863)
OKLCHoklch(51.41% 0.139 141.7)
XYZxyz(8.4976, 14.6691, 4.3027)
Luminance0.1467 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7A27 #72277A
analogous
#597A27 #2F7A27 #277A49
triadic
#2F7A27 #272F7A #7A272F
tetradic
#2F7A27 #27597A #72277A #7A4927
square
#2F7A27 #27597A #72277A #7A4927
split-complementary
#2F7A27 #49277A #7A2759
monochromatic
#0B1D09 #1D4C18 #2F7A27 #41A836 #5FC853

Accessibility & contrast

On white

5.34
#2F7A27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#2F7A27 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7A27
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7A27#FFFFFF#000000##FFFFFF
##2F7A271.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F1C
Deuteranopia (green-blind)
#74682E
Tritanopia (blue-blind)
#237669
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7a27;
/* rgb */ color: rgb(47, 122, 39);
/* oklch */ color: oklch(51.4% 0.139 141.7);
Tailwind
colors: {
  custom: {
    50: '#71a165',
    500: '#2f7a27',
    950: '#000000',
  },
}
SCSS
$custom: #2f7a27;
$custom-light: #71a165;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7a27",
  "rgb": {
    "r": 47,
    "g": 122,
    "b": 39
  },
  "hsl": {
    "h": 114.217,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.51405,
    "c": 0.13939,
    "h": 141.7
  },
  "luminance": 0.1467
}

Semantic roles & 50–950 ramp

primary
#2F7A27
secondary
#A351AC
accent
#4DDBCD
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7A27

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

Preview Lab → · Contrast checker → · Palette generator →

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