#2F8D28#2F8D28

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

Color values

HEX#2F8D28
RGBrgb(47, 141, 40)
HSLhsl(116, 56%, 35%)
HSVhsv(116, 72%, 55%)
CMYKcmyk(66.7%, 0%, 71.6%, 44.7%)
CIE-LABlab(51.62, -47.21, 43.81)
CIE-LCHlch(51.62, 64.40, 137.14°)
OKLaboklab(56.73% -0.1286 0.1)
OKLCHoklch(56.73% 0.163 142.1)
XYZxyz(11.0796, 19.8062, 5.2462)
Luminance0.1981 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8D28 #86288D
analogous
#618D28 #2F8D28 #288D54
triadic
#2F8D28 #282F8D #8D282F
tetradic
#2F8D28 #28618D #86288D #8D5428
square
#2F8D28 #28618D #86288D #8D5428
split-complementary
#2F8D28 #54288D #8D2861
monochromatic
#0F2E0D #1F5D1A #2F8D28 #3FBD36 #66D15E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F8D28#FFFFFF#000000##000000
##2F8D281.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)
#908018
Deuteranopia (green-blind)
#857832
Tritanopia (blue-blind)
#1C8979
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #2f8d28;
/* rgb */ color: rgb(47, 141, 40);
/* oklch */ color: oklch(56.7% 0.163 142.1);
Tailwind
colors: {
  custom: {
    50: '#75af68',
    500: '#2f8d28',
    950: '#000000',
  },
}
SCSS
$custom: #2f8d28;
$custom-light: #75af68;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8d28",
  "rgb": {
    "r": 47,
    "g": 141,
    "b": 40
  },
  "hsl": {
    "h": 115.842,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.56731,
    "c": 0.16289,
    "h": 142.1
  },
  "luminance": 0.19807
}

Semantic roles & 50–950 ramp

primary
#2F8D28
secondary
#B05AB7
accent
#49DFD5
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2F8D28

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

Preview Lab → · Contrast checker → · Palette generator →

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