#2F8A28#2F8A28

#2F8A28 is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.9% C 0.159 H 142.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#2F8A28
RGBrgb(47, 138, 40)
HSLhsl(116, 55%, 35%)
HSVhsv(116, 71%, 54%)
CMYKcmyk(65.9%, 0%, 71%, 45.9%)
CIE-LABlab(50.61, -46.11, 42.75)
CIE-LCHlch(50.61, 62.88, 137.17°)
OKLaboklab(55.9% -0.1256 0.0978)
OKLCHoklch(55.9% 0.159 142.1)
XYZxyz(10.6432, 18.9334, 5.1007)
Luminance0.1893 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8A28 #83288A
analogous
#608A28 #2F8A28 #288A52
triadic
#2F8A28 #282F8A #8A282F
tetradic
#2F8A28 #28608A #83288A #8A5228
square
#2F8A28 #28608A #83288A #8A5228
split-complementary
#2F8A28 #52288A #8A2860
monochromatic
#0F2B0C #1F5B1A #2F8A28 #3FB936 #65D05D

Accessibility & contrast

On white

4.39
#2F8A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#2F8A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8A28
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8A28#FFFFFF#000000##000000
##2F8A281.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D19
Deuteranopia (green-blind)
#827631
Tritanopia (blue-blind)
#1D8676
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2f8a28;
/* rgb */ color: rgb(47, 138, 40);
/* oklch */ color: oklch(55.9% 0.159 142.1);
Tailwind
colors: {
  custom: {
    50: '#74ad68',
    500: '#2f8a28',
    950: '#000000',
  },
}
SCSS
$custom: #2f8a28;
$custom-light: #74ad68;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8a28",
  "rgb": {
    "r": 47,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 115.714,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.55897,
    "c": 0.15919,
    "h": 142.1
  },
  "luminance": 0.18934
}

Semantic roles & 50–950 ramp

primary
#2F8A28
secondary
#AF59B5
accent
#49DED4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2F8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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