#2A7E15#2A7E15

#2A7E15 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.2% C 0.158 H 140.4°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#2A7E15
RGBrgb(42, 126, 21)
HSLhsl(108, 71%, 29%)
HSVhsv(108, 83%, 49%)
CMYKcmyk(66.7%, 0%, 83.3%, 50.6%)
CIE-LABlab(46.27, -44.36, 45.35)
CIE-LCHlch(46.27, 63.44, 134.36°)
OKLaboklab(52.22% -0.1216 0.1006)
OKLCHoklch(52.22% 0.158 140.4)
XYZxyz(8.5506, 15.4672, 3.2442)
Luminance0.1547 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E15 #69157E
analogous
#5F7E15 #2A7E15 #157E35
triadic
#2A7E15 #152A7E #7E152A
tetradic
#2A7E15 #155F7E #69157E #7E3515
square
#2A7E15 #155F7E #69157E #7E3515
split-complementary
#2A7E15 #35157E #7E155F
monochromatic
#091A04 #194A0C #2A7E15 #3BB21E #53DD31

Accessibility & contrast

On white

5.13
#2A7E15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#2A7E15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7E15
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7E15#FFFFFF#000000##FFFFFF
##2A7E151.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#786B22
Tritanopia (blue-blind)
#1C7A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7e15;
/* rgb */ color: rgb(42, 126, 21);
/* oklch */ color: oklch(52.2% 0.158 140.4);
Tailwind
colors: {
  custom: {
    50: '#70a45d',
    500: '#2a7e15',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e15;
$custom-light: #70a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e15",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 21
  },
  "hsl": {
    "h": 108,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52222,
    "c": 0.15781,
    "h": 140.4
  },
  "luminance": 0.15468
}

Semantic roles & 50–950 ramp

primary
#2A7E15
secondary
#9B3CB3
accent
#3AEECA
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7E15

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

Preview Lab → · Contrast checker → · Palette generator →

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