#2A7E14#2A7E14

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

Color values

HEX#2A7E14
RGBrgb(42, 126, 20)
HSLhsl(108, 73%, 29%)
HSVhsv(108, 84%, 49%)
CMYKcmyk(66.7%, 0%, 84.1%, 50.6%)
CIE-LABlab(46.26, -44.41, 45.65)
CIE-LCHlch(46.26, 63.69, 134.21°)
OKLaboklab(52.22% -0.1218 0.1011)
OKLCHoklch(52.22% 0.158 140.3)
XYZxyz(8.5416, 15.4636, 3.1963)
Luminance0.1546 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E14 #68147E
analogous
#5F7E14 #2A7E14 #147E33
triadic
#2A7E14 #142A7E #7E142A
tetradic
#2A7E14 #145F7E #68147E #7E3314
square
#2A7E14 #145F7E #68147E #7E3314
split-complementary
#2A7E14 #33147E #7E145F
monochromatic
#091A04 #18490C #2A7E14 #3CB31C #53DE2E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #2a7e14;
/* rgb */ color: rgb(42, 126, 20);
/* oklch */ color: oklch(52.2% 0.158 140.3);
Tailwind
colors: {
  custom: {
    50: '#70a45c',
    500: '#2a7e14',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e14;
$custom-light: #70a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e14",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 20
  },
  "hsl": {
    "h": 107.547,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52217,
    "c": 0.15827,
    "h": 140.3
  },
  "luminance": 0.15464
}

Semantic roles & 50–950 ramp

primary
#2A7E14
secondary
#9A3AB3
accent
#38EFC9
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2A7E14

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

Preview Lab → · Contrast checker → · Palette generator →

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