#2A7A19#2A7A19

#2A7A19 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.151 H 140.6°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#2A7A19
RGBrgb(42, 122, 25)
HSLhsl(109, 66%, 29%)
HSVhsv(109, 80%, 48%)
CMYKcmyk(65.6%, 0%, 79.5%, 52.2%)
CIE-LABlab(44.91, -42.63, 42.74)
CIE-LCHlch(44.91, 60.36, 134.92°)
OKLaboklab(51.11% -0.1167 0.0957)
OKLCHoklch(51.11% 0.151 140.6)
XYZxyz(8.0895, 14.4807, 3.2883)
Luminance0.1448 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A19 #69197A
analogous
#5B7A19 #2A7A19 #197A39
triadic
#2A7A19 #192A7A #7A192A
tetradic
#2A7A19 #195B7A #69197A #7A3919
square
#2A7A19 #195B7A #69197A #7A3919
split-complementary
#2A7A19 #39197A #7A195B
monochromatic
#091905 #19470F #2A7A19 #3BAD23 #53D637

Accessibility & contrast

On white

5.39
#2A7A19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#2A7A19 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A19
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A19#FFFFFF#000000##FFFFFF
##2A7A191.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E03
Deuteranopia (green-blind)
#746824
Tritanopia (blue-blind)
#1D7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7a19;
/* rgb */ color: rgb(42, 122, 25);
/* oklch */ color: oklch(51.1% 0.151 140.6);
Tailwind
colors: {
  custom: {
    50: '#6fa15e',
    500: '#2a7a19',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a19;
$custom-light: #6fa15e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a19",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 25
  },
  "hsl": {
    "h": 109.485,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51109,
    "c": 0.15096,
    "h": 140.6
  },
  "luminance": 0.14481
}

Semantic roles & 50–950 ramp

primary
#2A7A19
secondary
#9B40AF
accent
#3FE9CB
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7A19

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

Preview Lab → · Contrast checker → · Palette generator →

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