#2E7E21#2E7E21

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

Color values

HEX#2E7E21
RGBrgb(46, 126, 33)
HSLhsl(112, 58%, 31%)
HSVhsv(112, 74%, 49%)
CMYKcmyk(63.5%, 0%, 73.8%, 50.6%)
CIE-LABlab(46.46, -42.50, 41.29)
CIE-LCHlch(46.46, 59.26, 135.83°)
OKLaboklab(52.44% -0.1162 0.0938)
OKLCHoklch(52.44% 0.149 141.1)
XYZxyz(8.8616, 15.6115, 3.9849)
Luminance0.1561 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7E21 #71217E
analogous
#5C7E21 #2E7E21 #217E42
triadic
#2E7E21 #212E7E #7E212E
tetradic
#2E7E21 #215C7E #71217E #7E4221
square
#2E7E21 #215C7E #71217E #7E4221
split-complementary
#2E7E21 #42217E #7E215C
monochromatic
#0B1D08 #1C4E14 #2E7E21 #40AE2E #5DD04A

Accessibility & contrast

On white

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

On black

4.12
#2E7E21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2E7E21#FFFFFF#000000##FFFFFF
##2E7E211.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e7e21;
/* rgb */ color: rgb(46, 126, 33);
/* oklch */ color: oklch(52.4% 0.149 141.1);
Tailwind
colors: {
  custom: {
    50: '#71a462',
    500: '#2e7e21',
    950: '#000000',
  },
}
SCSS
$custom: #2e7e21;
$custom-light: #71a462;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7e21",
  "rgb": {
    "r": 46,
    "g": 126,
    "b": 33
  },
  "hsl": {
    "h": 111.613,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52439,
    "c": 0.14933,
    "h": 141.1
  },
  "luminance": 0.15612
}

Semantic roles & 50–950 ramp

primary
#2E7E21
secondary
#A24AB1
accent
#46E2CC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2E7E21

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

Preview Lab → · Contrast checker → · Palette generator →

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