#2F8721#2F8721

#2F8721 is a mid, vivid green. Relative luminance 0.180; OKLCH L 55.0% C 0.160 H 141.2°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#2F8721
RGBrgb(47, 135, 33)
HSLhsl(112, 61%, 33%)
HSVhsv(112, 76%, 53%)
CMYKcmyk(65.2%, 0%, 75.6%, 47.1%)
CIE-LABlab(49.55, -45.62, 44.44)
CIE-LCHlch(49.55, 63.69, 135.75°)
OKLaboklab(55% -0.1247 0.1004)
OKLCHoklch(55% 0.16 141.2)
XYZxyz(10.1103, 18.0411, 4.3880)
Luminance0.1804 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8721 #792187
analogous
#628721 #2F8721 #218746
triadic
#2F8721 #212F87 #87212F
tetradic
#2F8721 #216287 #792187 #874621
square
#2F8721 #216287 #792187 #874621
split-complementary
#2F8721 #462187 #872162
monochromatic
#0D2509 #1E5615 #2F8721 #40B82D #61D44F

Accessibility & contrast

On white

4.56
#2F8721 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#2F8721 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8721
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8721#FFFFFF#000000##000000
##2F87211.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A0E
Deuteranopia (green-blind)
#80732C
Tritanopia (blue-blind)
#208373
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2f8721;
/* rgb */ color: rgb(47, 135, 33);
/* oklch */ color: oklch(55.0% 0.160 141.2);
Tailwind
colors: {
  custom: {
    50: '#74ab63',
    500: '#2f8721',
    950: '#000000',
  },
}
SCSS
$custom: #2f8721;
$custom-light: #74ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8721",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 33
  },
  "hsl": {
    "h": 111.765,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.55,
    "c": 0.16006,
    "h": 141.2
  },
  "luminance": 0.18042
}

Semantic roles & 50–950 ramp

primary
#2F8721
secondary
#A84DB7
accent
#44E4CE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2F8721

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

Preview Lab → · Contrast checker → · Palette generator →

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