#2F821B#2F821B

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

Color values

HEX#2F821B
RGBrgb(47, 130, 27)
HSLhsl(108, 66%, 31%)
HSVhsv(108, 79%, 51%)
CMYKcmyk(63.8%, 0%, 79.2%, 49%)
CIE-LABlab(47.81, -44.22, 44.91)
CIE-LCHlch(47.81, 63.03, 134.56°)
OKLaboklab(53.55% -0.1212 0.1005)
OKLCHoklch(53.55% 0.157 140.3)
XYZxyz(9.3523, 16.6478, 3.7572)
Luminance0.1665 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F821B #6E1B82
analogous
#62821B #2F821B #1B823B
triadic
#2F821B #1B2F82 #821B2F
tetradic
#2F821B #1B6282 #6E1B82 #823B1B
square
#2F821B #1B6282 #6E1B82 #823B1B
split-complementary
#2F821B #3B1B82 #821B62
monochromatic
#0A1D06 #1D4F10 #2F821B #41B526 #5DD740

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F821B#FFFFFF#000000##FFFFFF
##2F821B1.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)
#867602
Deuteranopia (green-blind)
#7C6F27
Tritanopia (blue-blind)
#237E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2f821b;
/* rgb */ color: rgb(47, 130, 27);
/* oklch */ color: oklch(53.6% 0.157 140.3);
Tailwind
colors: {
  custom: {
    50: '#73a760',
    500: '#2f821b',
    950: '#000000',
  },
}
SCSS
$custom: #2f821b;
$custom-light: #73a760;
$custom-dark: #000000;
JSON
{
  "hex": "#2f821b",
  "rgb": {
    "r": 47,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 108.35,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53554,
    "c": 0.15749,
    "h": 140.3
  },
  "luminance": 0.16649
}

Semantic roles & 50–950 ramp

primary
#2F821B
secondary
#9F43B6
accent
#3FE9C8
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F821B

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

Preview Lab → · Contrast checker → · Palette generator →

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