#2E7F20#2E7F20

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

Color values

HEX#2E7F20
RGBrgb(46, 127, 32)
HSLhsl(111, 60%, 31%)
HSVhsv(111, 75%, 50%)
CMYKcmyk(63.8%, 0%, 74.8%, 50.2%)
CIE-LABlab(46.79, -42.97, 42.03)
CIE-LCHlch(46.79, 60.11, 135.63°)
OKLaboklab(52.71% -0.1175 0.0952)
OKLCHoklch(52.71% 0.151 141)
XYZxyz(8.9764, 15.8630, 3.9550)
Luminance0.1586 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7F20 #71207F
analogous
#5D7F20 #2E7F20 #207F41
triadic
#2E7F20 #202E7F #7F202E
tetradic
#2E7F20 #205D7F #71207F #7F4120
square
#2E7F20 #205D7F #71207F #7F4120
split-complementary
#2E7F20 #41207F #7F205D
monochromatic
#0B1D07 #1C4E14 #2E7F20 #40B02C #5DD148

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E7F20#FFFFFF#000000##FFFFFF
##2E7F201.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)
#82730F
Deuteranopia (green-blind)
#786C2A
Tritanopia (blue-blind)
#217B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2e7f20;
/* rgb */ color: rgb(46, 127, 32);
/* oklch */ color: oklch(52.7% 0.151 141.0);
Tailwind
colors: {
  custom: {
    50: '#72a562',
    500: '#2e7f20',
    950: '#000000',
  },
}
SCSS
$custom: #2e7f20;
$custom-light: #72a562;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7f20",
  "rgb": {
    "r": 46,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 111.158,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52713,
    "c": 0.15125,
    "h": 141
  },
  "luminance": 0.15864
}

Semantic roles & 50–950 ramp

primary
#2E7F20
secondary
#A249B2
accent
#45E3CC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #2E7F20

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

Preview Lab → · Contrast checker → · Palette generator →

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