#2E7A15#2E7A15

#2E7A15 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.2% C 0.151 H 139.6°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#2E7A15
RGBrgb(46, 122, 21)
HSLhsl(105, 71%, 28%)
HSVhsv(105, 83%, 48%)
CMYKcmyk(62.3%, 0%, 82.8%, 52.2%)
CIE-LABlab(45.02, -41.88, 44.23)
CIE-LCHlch(45.02, 60.91, 133.44°)
OKLaboklab(51.22% -0.1152 0.0982)
OKLCHoklch(51.22% 0.151 139.6)
XYZxyz(8.2212, 14.5533, 3.0851)
Luminance0.1455 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7A15 #61157A
analogous
#607A15 #2E7A15 #157A2F
triadic
#2E7A15 #152E7A #7A152E
tetradic
#2E7A15 #15607A #61157A #7A2F15
square
#2E7A15 #15607A #61157A #7A2F15
split-complementary
#2E7A15 #2F157A #7A1560
monochromatic
#0A1A04 #1A460C #2E7A15 #42AE1E #59DB2E

Accessibility & contrast

On white

5.37
#2E7A15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#2E7A15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7A15
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7A15#FFFFFF#000000##FFFFFF
##2E7A151.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#746821
Tritanopia (blue-blind)
#247667
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2e7a15;
/* rgb */ color: rgb(46, 122, 21);
/* oklch */ color: oklch(51.2% 0.151 139.6);
Tailwind
colors: {
  custom: {
    50: '#71a15c',
    500: '#2e7a15',
    950: '#000000',
  },
}
SCSS
$custom: #2e7a15;
$custom-light: #71a15c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7a15",
  "rgb": {
    "r": 46,
    "g": 122,
    "b": 21
  },
  "hsl": {
    "h": 105.149,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51221,
    "c": 0.15136,
    "h": 139.6
  },
  "luminance": 0.14554
}

Semantic roles & 50–950 ramp

primary
#2E7A15
secondary
#933BAF
accent
#3AEDC1
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2E7A15

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

Preview Lab → · Contrast checker → · Palette generator →

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