#2F821F#2F821F

#2F821F is a mid, vivid green. Relative luminance 0.167; OKLCH L 53.6% C 0.155 H 140.8°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#2F821F
RGBrgb(47, 130, 31)
HSLhsl(110, 61%, 32%)
HSVhsv(110, 76%, 51%)
CMYKcmyk(63.8%, 0%, 76.2%, 49%)
CIE-LABlab(47.84, -43.93, 43.48)
CIE-LCHlch(47.84, 61.81, 135.29°)
OKLaboklab(53.58% -0.1202 0.0981)
OKLCHoklch(53.58% 0.155 140.8)
XYZxyz(9.4018, 16.6676, 4.0178)
Luminance0.1667 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F821F #721F82
analogous
#61821F #2F821F #1F8241
triadic
#2F821F #1F2F82 #821F2F
tetradic
#2F821F #1F6182 #721F82 #82411F
square
#2F821F #1F6182 #721F82 #82411F
split-complementary
#2F821F #411F82 #821F61
monochromatic
#0B1F07 #1D5113 #2F821F #41B32B #5FD348

Accessibility & contrast

On white

4.85
#2F821F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#2F821F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F821F
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F821F#FFFFFF#000000##FFFFFF
##2F821F1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86760C
Deuteranopia (green-blind)
#7B6F29
Tritanopia (blue-blind)
#227E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2f821f;
/* rgb */ color: rgb(47, 130, 31);
/* oklch */ color: oklch(53.6% 0.155 140.8);
Tailwind
colors: {
  custom: {
    50: '#73a762',
    500: '#2f821f',
    950: '#000000',
  },
}
SCSS
$custom: #2f821f;
$custom-light: #73a762;
$custom-dark: #000000;
JSON
{
  "hex": "#2f821f",
  "rgb": {
    "r": 47,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 110.303,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53583,
    "c": 0.15517,
    "h": 140.8
  },
  "luminance": 0.16669
}

Semantic roles & 50–950 ramp

primary
#2F821F
secondary
#A348B5
accent
#43E5CB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #2F821F

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

Preview Lab → · Contrast checker → · Palette generator →

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