#2E7F21#2E7F21

#2E7F21 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.7% C 0.151 H 141.1°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#2E7F21
RGBrgb(46, 127, 33)
HSLhsl(112, 59%, 31%)
HSVhsv(112, 74%, 50%)
CMYKcmyk(63.8%, 0%, 74%, 50.2%)
CIE-LABlab(46.80, -42.88, 41.64)
CIE-LCHlch(46.80, 59.77, 135.84°)
OKLaboklab(52.72% -0.1172 0.0946)
OKLCHoklch(52.72% 0.151 141.1)
XYZxyz(8.9902, 15.8685, 4.0277)
Luminance0.1587 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7F21 #72217F
analogous
#5D7F21 #2E7F21 #217F43
triadic
#2E7F21 #212E7F #7F212E
tetradic
#2E7F21 #215D7F #72217F #7F4321
square
#2E7F21 #215D7F #72217F #7F4321
split-complementary
#2E7F21 #43217F #7F215D
monochromatic
#0B1E08 #1C4E14 #2E7F21 #40B02E #5DD04A

Accessibility & contrast

On white

5.03
#2E7F21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#2E7F21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7F21
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7F21#FFFFFF#000000##FFFFFF
##2E7F211.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827311
Deuteranopia (green-blind)
#786C2A
Tritanopia (blue-blind)
#217B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2e7f21;
/* rgb */ color: rgb(46, 127, 33);
/* oklch */ color: oklch(52.7% 0.151 141.1);
Tailwind
colors: {
  custom: {
    50: '#72a562',
    500: '#2e7f21',
    950: '#000000',
  },
}
SCSS
$custom: #2e7f21;
$custom-light: #72a562;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7f21",
  "rgb": {
    "r": 46,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 111.702,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52721,
    "c": 0.1506,
    "h": 141.1
  },
  "luminance": 0.15869
}

Semantic roles & 50–950 ramp

primary
#2E7F21
secondary
#A34AB2
accent
#46E2CC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #2E7F21

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

Preview Lab → · Contrast checker → · Palette generator →

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