#2F7F27#2F7F27

#2F7F27 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.146 H 141.8°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#2F7F27
RGBrgb(47, 127, 39)
HSLhsl(115, 53%, 33%)
HSVhsv(115, 69%, 50%)
CMYKcmyk(63%, 0%, 69.3%, 50.2%)
CIE-LABlab(46.88, -42.07, 39.20)
CIE-LCHlch(46.88, 57.50, 137.02°)
OKLaboklab(52.81% -0.1147 0.0902)
OKLCHoklch(52.81% 0.146 141.8)
XYZxyz(9.1274, 15.9287, 4.5126)
Luminance0.1593 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F27 #77277F
analogous
#5B7F27 #2F7F27 #277F4B
triadic
#2F7F27 #272F7F #7F272F
tetradic
#2F7F27 #275B7F #77277F #7F4B27
square
#2F7F27 #275B7F #77277F #7F4B27
split-complementary
#2F7F27 #4B277F #7F275B
monochromatic
#0C210A #1E5019 #2F7F27 #40AE35 #60CB55

Accessibility & contrast

On white

5.02
#2F7F27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#2F7F27 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7F27
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7F27#FFFFFF#000000##FFFFFF
##2F7F271.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82731B
Deuteranopia (green-blind)
#786D2F
Tritanopia (blue-blind)
#227B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7f27;
/* rgb */ color: rgb(47, 127, 39);
/* oklch */ color: oklch(52.8% 0.146 141.8);
Tailwind
colors: {
  custom: {
    50: '#72a566',
    500: '#2f7f27',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f27;
$custom-light: #72a566;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f27",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 39
  },
  "hsl": {
    "h": 114.545,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52811,
    "c": 0.14595,
    "h": 141.8
  },
  "luminance": 0.1593
}

Semantic roles & 50–950 ramp

primary
#2F7F27
secondary
#A752B0
accent
#4BDCCF
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #2F7F27

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

Preview Lab → · Contrast checker → · Palette generator →

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