#2E7E2A#2E7E2A

#2E7E2A is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.143 H 142.5°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#2E7E2A
RGBrgb(46, 126, 42)
HSLhsl(117, 50%, 33%)
HSVhsv(117, 67%, 49%)
CMYKcmyk(63.5%, 0%, 66.7%, 50.6%)
CIE-LABlab(46.54, -41.62, 37.47)
CIE-LCHlch(46.54, 56.00, 138.00°)
OKLaboklab(52.53% -0.1133 0.0869)
OKLCHoklch(52.53% 0.143 142.5)
XYZxyz(9.0050, 15.6689, 4.7399)
Luminance0.1567 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7E2A #7A2A7E
analogous
#587E2A #2E7E2A #2A7E50
triadic
#2E7E2A #2A2E7E #7E2A2E
tetradic
#2E7E2A #2A587E #7A2A7E #7E502A
square
#2E7E2A #2A587E #7A2A7E #7E502A
split-complementary
#2E7E2A #502A7E #7E2A58
monochromatic
#0C220B #1D501B #2E7E2A #3FAC39 #60C85A

Accessibility & contrast

On white

5.08
#2E7E2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#2E7E2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7E2A
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7E2A#FFFFFF#000000##FFFFFF
##2E7E2A1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817220
Deuteranopia (green-blind)
#776C31
Tritanopia (blue-blind)
#207A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2e7e2a;
/* rgb */ color: rgb(46, 126, 42);
/* oklch */ color: oklch(52.5% 0.143 142.5);
Tailwind
colors: {
  custom: {
    50: '#71a467',
    500: '#2e7e2a',
    950: '#000000',
  },
}
SCSS
$custom: #2e7e2a;
$custom-light: #71a467;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7e2a",
  "rgb": {
    "r": 46,
    "g": 126,
    "b": 42
  },
  "hsl": {
    "h": 117.143,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.52527,
    "c": 0.14276,
    "h": 142.5
  },
  "luminance": 0.1567
}

Semantic roles & 50–950 ramp

primary
#2E7E2A
secondary
#AA56AE
accent
#4EDAD3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2E7E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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