#2F8F21#2F8F21

#2F8F21 is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.2% C 0.170 H 141.3°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#2F8F21
RGBrgb(47, 143, 33)
HSLhsl(112, 63%, 35%)
HSVhsv(112, 77%, 56%)
CMYKcmyk(67.1%, 0%, 76.9%, 43.9%)
CIE-LABlab(52.24, -48.51, 47.13)
CIE-LCHlch(52.24, 67.63, 135.82°)
OKLaboklab(57.23% -0.1325 0.106)
OKLCHoklch(57.23% 0.17 141.3)
XYZxyz(11.2687, 20.3579, 4.7742)
Luminance0.2036 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8F21 #81218F
analogous
#668F21 #2F8F21 #218F4A
triadic
#2F8F21 #212F8F #8F212F
tetradic
#2F8F21 #21668F #81218F #8F4A21
square
#2F8F21 #21668F #81218F #8F4A21
split-complementary
#2F8F21 #4A218F #8F2166
monochromatic
#0E2C0A #1F5D16 #2F8F21 #3FC12C #64D753

Accessibility & contrast

On white

4.14
#2F8F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#2F8F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8F21
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8F21#FFFFFF#000000##000000
##2F8F211.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938109
Deuteranopia (green-blind)
#877A2D
Tritanopia (blue-blind)
#1C8A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #2f8f21;
/* rgb */ color: rgb(47, 143, 33);
/* oklch */ color: oklch(57.2% 0.170 141.3);
Tailwind
colors: {
  custom: {
    50: '#75b164',
    500: '#2f8f21',
    950: '#000000',
  },
}
SCSS
$custom: #2f8f21;
$custom-light: #75b164;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8f21",
  "rgb": {
    "r": 47,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 112.364,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.57231,
    "c": 0.16966,
    "h": 141.3
  },
  "luminance": 0.20359
}

Semantic roles & 50–950 ramp

primary
#2F8F21
secondary
#AD51BB
accent
#42E6D1
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #2F8F21

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

Preview Lab → · Contrast checker → · Palette generator →

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