#2A7E16#2A7E16

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

Color values

HEX#2A7E16
RGBrgb(42, 126, 22)
HSLhsl(108, 70%, 29%)
HSVhsv(108, 83%, 49%)
CMYKcmyk(66.7%, 0%, 82.5%, 50.6%)
CIE-LABlab(46.27, -44.30, 45.05)
CIE-LCHlch(46.27, 63.18, 134.52°)
OKLaboklab(52.23% -0.1214 0.1001)
OKLCHoklch(52.23% 0.157 140.5)
XYZxyz(8.5601, 15.4710, 3.2940)
Luminance0.1547 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E16 #6A167E
analogous
#5E7E16 #2A7E16 #167E36
triadic
#2A7E16 #162A7E #7E162A
tetradic
#2A7E16 #165E7E #6A167E #7E3616
square
#2A7E16 #165E7E #6A167E #7E3616
split-complementary
#2A7E16 #36167E #7E165E
monochromatic
#091A05 #194A0D #2A7E16 #3BB21F #53DB33

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7E16#FFFFFF#000000##FFFFFF
##2A7E161.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)
#786B23
Tritanopia (blue-blind)
#1C7A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7e16;
/* rgb */ color: rgb(42, 126, 22);
/* oklch */ color: oklch(52.2% 0.157 140.5);
Tailwind
colors: {
  custom: {
    50: '#70a45d',
    500: '#2a7e16',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e16;
$custom-light: #70a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e16",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 22
  },
  "hsl": {
    "h": 108.462,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52228,
    "c": 0.15734,
    "h": 140.5
  },
  "luminance": 0.15472
}

Semantic roles & 50–950 ramp

primary
#2A7E16
secondary
#9C3DB3
accent
#3BEDCB
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7E16

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

Preview Lab → · Contrast checker → · Palette generator →

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