#2E7C28#2E7C28

#2E7C28 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.9% C 0.142 H 142.1°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#2E7C28
RGBrgb(46, 124, 40)
HSLhsl(116, 51%, 32%)
HSVhsv(116, 68%, 49%)
CMYKcmyk(62.9%, 0%, 67.7%, 51.4%)
CIE-LABlab(45.84, -41.06, 37.61)
CIE-LCHlch(45.84, 55.68, 137.51°)
OKLaboklab(51.94% -0.1119 0.087)
OKLCHoklch(51.94% 0.142 142.1)
XYZxyz(8.7169, 15.1485, 4.4717)
Luminance0.1515 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7C28 #76287C
analogous
#587C28 #2E7C28 #287C4C
triadic
#2E7C28 #282E7C #7C282E
tetradic
#2E7C28 #28587C #76287C #7C4C28
square
#2E7C28 #28587C #76287C #7C4C28
split-complementary
#2E7C28 #4C287C #7C2858
monochromatic
#0C1F0A #1D4E19 #2E7C28 #3FAA37 #5EC856

Accessibility & contrast

On white

5.21
#2E7C28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#2E7C28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7C28
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7C28#FFFFFF#000000##FFFFFF
##2E7C281.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F711D
Deuteranopia (green-blind)
#756A2F
Tritanopia (blue-blind)
#21786B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2e7c28;
/* rgb */ color: rgb(46, 124, 40);
/* oklch */ color: oklch(51.9% 0.142 142.1);
Tailwind
colors: {
  custom: {
    50: '#71a366',
    500: '#2e7c28',
    950: '#000000',
  },
}
SCSS
$custom: #2e7c28;
$custom-light: #71a366;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7c28",
  "rgb": {
    "r": 46,
    "g": 124,
    "b": 40
  },
  "hsl": {
    "h": 115.714,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51943,
    "c": 0.1417,
    "h": 142.1
  },
  "luminance": 0.15149
}

Semantic roles & 50–950 ramp

primary
#2E7C28
secondary
#A752AD
accent
#4DDBD1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2E7C28

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

Preview Lab → · Contrast checker → · Palette generator →

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