#2F8F27#2F8F27

#2F8F27 is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.3% C 0.166 H 142.0°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#2F8F27
RGBrgb(47, 143, 39)
HSLhsl(115, 57%, 36%)
HSVhsv(115, 73%, 56%)
CMYKcmyk(67.1%, 0%, 72.7%, 43.9%)
CIE-LABlab(52.28, -48.02, 44.90)
CIE-LCHlch(52.28, 65.74, 136.92°)
OKLaboklab(57.28% -0.1308 0.1022)
OKLCHoklch(57.28% 0.166 142)
XYZxyz(11.3603, 20.3946, 5.2569)
Luminance0.2040 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8F27 #87278F
analogous
#638F27 #2F8F27 #278F53
triadic
#2F8F27 #272F8F #8F272F
tetradic
#2F8F27 #27638F #87278F #8F5327
square
#2F8F27 #27638F #87278F #8F5327
split-complementary
#2F8F27 #53278F #8F2763
monochromatic
#0F2F0D #1F5F1A #2F8F27 #3FBF34 #66D35D

Accessibility & contrast

On white

4.13
#2F8F27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#2F8F27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8F27
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8F27#FFFFFF#000000##000000
##2F8F271.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928116
Deuteranopia (green-blind)
#877A31
Tritanopia (blue-blind)
#1B8B7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #2f8f27;
/* rgb */ color: rgb(47, 143, 39);
/* oklch */ color: oklch(57.3% 0.166 142.0);
Tailwind
colors: {
  custom: {
    50: '#75b168',
    500: '#2f8f27',
    950: '#000000',
  },
}
SCSS
$custom: #2f8f27;
$custom-light: #75b168;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8f27",
  "rgb": {
    "r": 47,
    "g": 143,
    "b": 39
  },
  "hsl": {
    "h": 115.385,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.57278,
    "c": 0.16599,
    "h": 142
  },
  "luminance": 0.20396
}

Semantic roles & 50–950 ramp

primary
#2F8F27
secondary
#B15AB8
accent
#47E0D5
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #2F8F27

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

Preview Lab → · Contrast checker → · Palette generator →

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