#2F8B27#2F8B27

#2F8B27 is a mid, vivid green. Relative luminance 0.192; OKLCH L 56.2% C 0.161 H 142.0°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#2F8B27
RGBrgb(47, 139, 39)
HSLhsl(115, 56%, 35%)
HSVhsv(115, 72%, 55%)
CMYKcmyk(66.2%, 0%, 71.9%, 45.5%)
CIE-LABlab(50.94, -46.57, 43.50)
CIE-LCHlch(50.94, 63.73, 136.95°)
OKLaboklab(56.17% -0.1269 0.0993)
OKLCHoklch(56.17% 0.161 142)
XYZxyz(10.7705, 19.2150, 5.0603)
Luminance0.1922 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8B27 #83278B
analogous
#618B27 #2F8B27 #278B51
triadic
#2F8B27 #272F8B #8B272F
tetradic
#2F8B27 #27618B #83278B #8B5127
square
#2F8B27 #27618B #83278B #8B5127
split-complementary
#2F8B27 #51278B #8B2761
monochromatic
#0F2B0C #1F5B1A #2F8B27 #3FBB34 #65D15B

Accessibility & contrast

On white

4.34
#2F8B27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#2F8B27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8B27
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8B27#FFFFFF#000000##000000
##2F8B271.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E17
Deuteranopia (green-blind)
#837631
Tritanopia (blue-blind)
#1D8777
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2f8b27;
/* rgb */ color: rgb(47, 139, 39);
/* oklch */ color: oklch(56.2% 0.161 142.0);
Tailwind
colors: {
  custom: {
    50: '#74ae67',
    500: '#2f8b27',
    950: '#000000',
  },
}
SCSS
$custom: #2f8b27;
$custom-light: #74ae67;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8b27",
  "rgb": {
    "r": 47,
    "g": 139,
    "b": 39
  },
  "hsl": {
    "h": 115.2,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.56166,
    "c": 0.1611,
    "h": 142
  },
  "luminance": 0.19216
}

Semantic roles & 50–950 ramp

primary
#2F8B27
secondary
#AF58B6
accent
#48DFD3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2F8B27

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

Preview Lab → · Contrast checker → · Palette generator →

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