#2F8D27#2F8D27

#2F8D27 is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.7% C 0.164 H 142.0°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#2F8D27
RGBrgb(47, 141, 39)
HSLhsl(115, 57%, 35%)
HSVhsv(115, 72%, 55%)
CMYKcmyk(66.7%, 0%, 72.3%, 44.7%)
CIE-LABlab(51.61, -47.30, 44.20)
CIE-LCHlch(51.61, 64.74, 136.94°)
OKLaboklab(56.72% -0.1289 0.1007)
OKLCHoklch(56.72% 0.164 142)
XYZxyz(11.0628, 19.7995, 5.1577)
Luminance0.1980 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8D27 #85278D
analogous
#628D27 #2F8D27 #278D52
triadic
#2F8D27 #272F8D #8D272F
tetradic
#2F8D27 #27628D #85278D #8D5227
square
#2F8D27 #27628D #85278D #8D5227
split-complementary
#2F8D27 #52278D #8D2762
monochromatic
#0F2D0C #1F5D1A #2F8D27 #3FBD34 #66D25C

Accessibility & contrast

On white

4.23
#2F8D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#2F8D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8D27
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8D27#FFFFFF#000000##000000
##2F8D271.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#908017
Deuteranopia (green-blind)
#857831
Tritanopia (blue-blind)
#1C8979
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #2f8d27;
/* rgb */ color: rgb(47, 141, 39);
/* oklch */ color: oklch(56.7% 0.164 142.0);
Tailwind
colors: {
  custom: {
    50: '#75af67',
    500: '#2f8d27',
    950: '#000000',
  },
}
SCSS
$custom: #2f8d27;
$custom-light: #75af67;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8d27",
  "rgb": {
    "r": 47,
    "g": 141,
    "b": 39
  },
  "hsl": {
    "h": 115.294,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.56722,
    "c": 0.16355,
    "h": 142
  },
  "luminance": 0.19801
}

Semantic roles & 50–950 ramp

primary
#2F8D27
secondary
#B059B7
accent
#48E0D4
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2F8D27

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

Preview Lab → · Contrast checker → · Palette generator →

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