#2F8D21#2F8D21

#2F8D21 is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.7% C 0.167 H 141.3°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#2F8D21
RGBrgb(47, 141, 33)
HSLhsl(112, 62%, 34%)
HSVhsv(112, 77%, 55%)
CMYKcmyk(66.7%, 0%, 76.6%, 44.7%)
CIE-LABlab(51.57, -47.79, 46.46)
CIE-LCHlch(51.57, 66.66, 135.81°)
OKLaboklab(56.67% -0.1305 0.1046)
OKLCHoklch(56.67% 0.167 141.3)
XYZxyz(10.9711, 19.7628, 4.6750)
Luminance0.1976 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8D21 #7F218D
analogous
#658D21 #2F8D21 #218D49
triadic
#2F8D21 #212F8D #8D212F
tetradic
#2F8D21 #21658D #7F218D #8D4921
square
#2F8D21 #21658D #7F218D #8D4921
split-complementary
#2F8D21 #49218D #8D2165
monochromatic
#0E2A0A #1E5B15 #2F8D21 #40BF2D #63D652

Accessibility & contrast

On white

4.24
#2F8D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#2F8D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8D21
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8D21#FFFFFF#000000##000000
##2F8D211.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800A
Deuteranopia (green-blind)
#85782D
Tritanopia (blue-blind)
#1D8878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #2f8d21;
/* rgb */ color: rgb(47, 141, 33);
/* oklch */ color: oklch(56.7% 0.167 141.3);
Tailwind
colors: {
  custom: {
    50: '#75af64',
    500: '#2f8d21',
    950: '#000000',
  },
}
SCSS
$custom: #2f8d21;
$custom-light: #75af64;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8d21",
  "rgb": {
    "r": 47,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 112.222,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56674,
    "c": 0.16728,
    "h": 141.3
  },
  "luminance": 0.19764
}

Semantic roles & 50–950 ramp

primary
#2F8D21
secondary
#AC50BA
accent
#43E5D0
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2F8D21

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

Preview Lab → · Contrast checker → · Palette generator →

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