#2F8728#2F8728

#2F8728 is a mid, vivid green. Relative luminance 0.181; OKLCH L 55.1% C 0.155 H 142.1°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#2F8728
RGBrgb(47, 135, 40)
HSLhsl(116, 54%, 34%)
HSVhsv(116, 70%, 53%)
CMYKcmyk(65.2%, 0%, 70.4%, 47.1%)
CIE-LABlab(49.60, -45.00, 41.68)
CIE-LCHlch(49.60, 61.34, 137.20°)
OKLaboklab(55.06% -0.1226 0.0955)
OKLCHoklch(55.06% 0.155 142.1)
XYZxyz(10.2187, 18.0845, 4.9592)
Luminance0.1809 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8728 #802887
analogous
#5F8728 #2F8728 #288751
triadic
#2F8728 #282F87 #87282F
tetradic
#2F8728 #285F87 #802887 #875128
square
#2F8728 #285F87 #802887 #875128
split-complementary
#2F8728 #512887 #87285F
monochromatic
#0E290C #1F581A #2F8728 #3FB636 #63CE5B

Accessibility & contrast

On white

4.55
#2F8728 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#2F8728 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8728
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8728#FFFFFF#000000##000000
##2F87281.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1A
Deuteranopia (green-blind)
#807331
Tritanopia (blue-blind)
#1E8374
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2f8728;
/* rgb */ color: rgb(47, 135, 40);
/* oklch */ color: oklch(55.1% 0.155 142.1);
Tailwind
colors: {
  custom: {
    50: '#73ab67',
    500: '#2f8728',
    950: '#000000',
  },
}
SCSS
$custom: #2f8728;
$custom-light: #73ab67;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8728",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 40
  },
  "hsl": {
    "h": 115.579,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.5506,
    "c": 0.15543,
    "h": 142.1
  },
  "luminance": 0.18085
}

Semantic roles & 50–950 ramp

primary
#2F8728
secondary
#AD57B4
accent
#4ADED3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2F8728

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

Preview Lab → · Contrast checker → · Palette generator →

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