#2E7F22#2E7F22

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

Color values

HEX#2E7F22
RGBrgb(46, 127, 34)
HSLhsl(112, 58%, 32%)
HSVhsv(112, 73%, 50%)
CMYKcmyk(63.8%, 0%, 73.2%, 50.2%)
CIE-LABlab(46.81, -42.79, 41.24)
CIE-LCHlch(46.81, 59.43, 136.06°)
OKLaboklab(52.73% -0.1169 0.0939)
OKLCHoklch(52.73% 0.15 141.2)
XYZxyz(9.0044, 15.8742, 4.1026)
Luminance0.1588 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7F22 #73227F
analogous
#5D7F22 #2E7F22 #227F45
triadic
#2E7F22 #222E7F #7F222E
tetradic
#2E7F22 #225D7F #73227F #7F4522
square
#2E7F22 #225D7F #73227F #7F4522
split-complementary
#2E7F22 #45227F #7F225D
monochromatic
#0B1E08 #1D4F15 #2E7F22 #3FAF2F #5DCF4C

Accessibility & contrast

On white

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

On black

4.18
#2E7F22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2E7F22#FFFFFF#000000##FFFFFF
##2E7F221.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e7f22;
/* rgb */ color: rgb(46, 127, 34);
/* oklch */ color: oklch(52.7% 0.150 141.2);
Tailwind
colors: {
  custom: {
    50: '#71a563',
    500: '#2e7f22',
    950: '#000000',
  },
}
SCSS
$custom: #2e7f22;
$custom-light: #71a563;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7f22",
  "rgb": {
    "r": 46,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 112.258,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.5273,
    "c": 0.14993,
    "h": 141.2
  },
  "luminance": 0.15875
}

Semantic roles & 50–950 ramp

primary
#2E7F22
secondary
#A44BB2
accent
#47E1CD
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #2E7F22

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

Preview Lab → · Contrast checker → · Palette generator →

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