#2A7D14#2A7D14

#2A7D14 is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.9% C 0.157 H 140.3°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#2A7D14
RGBrgb(42, 125, 20)
HSLhsl(107, 72%, 28%)
HSVhsv(107, 84%, 49%)
CMYKcmyk(66.4%, 0%, 84%, 51%)
CIE-LABlab(45.92, -44.05, 45.34)
CIE-LCHlch(45.92, 63.21, 134.18°)
OKLaboklab(51.93% -0.1208 0.1004)
OKLCHoklch(51.93% 0.157 140.3)
XYZxyz(8.4143, 15.2091, 3.1539)
Luminance0.1521 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D14 #67147D
analogous
#5E7D14 #2A7D14 #147D33
triadic
#2A7D14 #142A7D #7D142A
tetradic
#2A7D14 #145E7D #67147D #7D3314
square
#2A7D14 #145E7D #67147D #7D3314
split-complementary
#2A7D14 #33147D #7D145E
monochromatic
#091A04 #18480C #2A7D14 #3CB21C #53DE2E

Accessibility & contrast

On white

5.20
#2A7D14 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#2A7D14 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D14
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D14#FFFFFF#000000##FFFFFF
##2A7D141.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#776A21
Tritanopia (blue-blind)
#1D796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d14;
/* rgb */ color: rgb(42, 125, 20);
/* oklch */ color: oklch(51.9% 0.157 140.3);
Tailwind
colors: {
  custom: {
    50: '#70a35c',
    500: '#2a7d14',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d14;
$custom-light: #70a35c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d14",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 20
  },
  "hsl": {
    "h": 107.429,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51932,
    "c": 0.1571,
    "h": 140.3
  },
  "luminance": 0.1521
}

Semantic roles & 50–950 ramp

primary
#2A7D14
secondary
#993AB2
accent
#39EFC9
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2A7D14

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

Preview Lab → · Contrast checker → · Palette generator →

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