#2E7D21#2E7D21

#2E7D21 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.148 H 141.1°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#2E7D21
RGBrgb(46, 125, 33)
HSLhsl(112, 58%, 31%)
HSVhsv(112, 74%, 49%)
CMYKcmyk(63.2%, 0%, 73.6%, 51%)
CIE-LABlab(46.12, -42.12, 40.94)
CIE-LCHlch(46.12, 58.74, 135.82°)
OKLaboklab(52.16% -0.1152 0.0931)
OKLCHoklch(52.16% 0.148 141.1)
XYZxyz(8.7344, 15.3571, 3.9425)
Luminance0.1536 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7D21 #70217D
analogous
#5C7D21 #2E7D21 #217D42
triadic
#2E7D21 #212E7D #7D212E
tetradic
#2E7D21 #215C7D #70217D #7D4221
square
#2E7D21 #215C7D #70217D #7D4221
split-complementary
#2E7D21 #42217D #7D215C
monochromatic
#0A1C07 #1C4D14 #2E7D21 #40AD2E #5CCF49

Accessibility & contrast

On white

5.16
#2E7D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#2E7D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7D21
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7D21#FFFFFF#000000##FFFFFF
##2E7D211.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807112
Deuteranopia (green-blind)
#776B2A
Tritanopia (blue-blind)
#22796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2e7d21;
/* rgb */ color: rgb(46, 125, 33);
/* oklch */ color: oklch(52.2% 0.148 141.1);
Tailwind
colors: {
  custom: {
    50: '#71a362',
    500: '#2e7d21',
    950: '#000000',
  },
}
SCSS
$custom: #2e7d21;
$custom-light: #71a362;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7d21",
  "rgb": {
    "r": 46,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 111.522,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52157,
    "c": 0.14807,
    "h": 141.1
  },
  "luminance": 0.15358
}

Semantic roles & 50–950 ramp

primary
#2E7D21
secondary
#A14AB0
accent
#46E1CC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2E7D21

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

Preview Lab → · Contrast checker → · Palette generator →

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