#2F7E21#2F7E21

#2F7E21 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.5% C 0.149 H 140.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#2F7E21
RGBrgb(47, 126, 33)
HSLhsl(111, 58%, 31%)
HSVhsv(111, 74%, 49%)
CMYKcmyk(62.7%, 0%, 73.8%, 50.6%)
CIE-LABlab(46.49, -42.25, 41.33)
CIE-LCHlch(46.49, 59.10, 135.63°)
OKLaboklab(52.47% -0.1156 0.0939)
OKLCHoklch(52.47% 0.149 140.9)
XYZxyz(8.9072, 15.6350, 3.9870)
Luminance0.1564 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E21 #70217E
analogous
#5D7E21 #2F7E21 #217E41
triadic
#2F7E21 #212F7E #7E212F
tetradic
#2F7E21 #215D7E #70217E #7E4121
square
#2F7E21 #215D7E #70217E #7E4121
split-complementary
#2F7E21 #41217E #7E215D
monochromatic
#0B1D08 #1D4E14 #2F7E21 #41AE2E #5ED04A

Accessibility & contrast

On white

5.09
#2F7E21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#2F7E21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7E21
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7E21#FFFFFF#000000##FFFFFF
##2F7E211.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817212
Deuteranopia (green-blind)
#786C2A
Tritanopia (blue-blind)
#237A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7e21;
/* rgb */ color: rgb(47, 126, 33);
/* oklch */ color: oklch(52.5% 0.149 140.9);
Tailwind
colors: {
  custom: {
    50: '#72a462',
    500: '#2f7e21',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e21;
$custom-light: #72a462;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e21",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 33
  },
  "hsl": {
    "h": 110.968,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52474,
    "c": 0.1489,
    "h": 140.9
  },
  "luminance": 0.15636
}

Semantic roles & 50–950 ramp

primary
#2F7E21
secondary
#A14AB1
accent
#46E2CA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #2F7E21

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

Preview Lab → · Contrast checker → · Palette generator →

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