#2F8A21#2F8A21

#2F8A21 is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.8% C 0.164 H 141.2°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#2F8A21
RGBrgb(47, 138, 33)
HSLhsl(112, 61%, 34%)
HSVhsv(112, 76%, 54%)
CMYKcmyk(65.9%, 0%, 76.1%, 45.9%)
CIE-LABlab(50.56, -46.71, 45.46)
CIE-LCHlch(50.56, 65.18, 135.78°)
OKLaboklab(55.84% -0.1276 0.1025)
OKLCHoklch(55.84% 0.164 141.2)
XYZxyz(10.5347, 18.8901, 4.5295)
Luminance0.1889 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8A21 #7C218A
analogous
#638A21 #2F8A21 #218A47
triadic
#2F8A21 #212F8A #8A212F
tetradic
#2F8A21 #21638A #7C218A #8A4721
square
#2F8A21 #21638A #7C218A #8A4721
split-complementary
#2F8A21 #47218A #8A2163
monochromatic
#0D2709 #1E5915 #2F8A21 #40BB2D #62D550

Accessibility & contrast

On white

4.39
#2F8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#2F8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8A21
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8A21#FFFFFF#000000##000000
##2F8A211.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D0C
Deuteranopia (green-blind)
#83762C
Tritanopia (blue-blind)
#1F8676
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2f8a21;
/* rgb */ color: rgb(47, 138, 33);
/* oklch */ color: oklch(55.8% 0.164 141.2);
Tailwind
colors: {
  custom: {
    50: '#74ad64',
    500: '#2f8a21',
    950: '#000000',
  },
}
SCSS
$custom: #2f8a21;
$custom-light: #74ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8a21",
  "rgb": {
    "r": 47,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 112,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.55838,
    "c": 0.1637,
    "h": 141.2
  },
  "luminance": 0.18891
}

Semantic roles & 50–950 ramp

primary
#2F8A21
secondary
#AA4EB9
accent
#43E5CF
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2F8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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