#2A7A18#2A7A18

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

Color values

HEX#2A7A18
RGBrgb(42, 122, 24)
HSLhsl(109, 67%, 29%)
HSVhsv(109, 80%, 48%)
CMYKcmyk(65.6%, 0%, 80.3%, 52.2%)
CIE-LABlab(44.91, -42.70, 43.09)
CIE-LCHlch(44.91, 60.66, 134.74°)
OKLaboklab(51.1% -0.117 0.0963)
OKLCHoklch(51.1% 0.152 140.5)
XYZxyz(8.0789, 14.4765, 3.2325)
Luminance0.1448 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A18 #68187A
analogous
#5B7A18 #2A7A18 #187A37
triadic
#2A7A18 #182A7A #7A182A
tetradic
#2A7A18 #185B7A #68187A #7A3718
square
#2A7A18 #185B7A #68187A #7A3718
split-complementary
#2A7A18 #37187A #7A185B
monochromatic
#091A05 #18470E #2A7A18 #3CAD22 #53D735

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7A18#FFFFFF#000000##FFFFFF
##2A7A181.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)
#7D6E01
Deuteranopia (green-blind)
#746823
Tritanopia (blue-blind)
#1D7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7a18;
/* rgb */ color: rgb(42, 122, 24);
/* oklch */ color: oklch(51.1% 0.152 140.5);
Tailwind
colors: {
  custom: {
    50: '#6fa15d',
    500: '#2a7a18',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a18;
$custom-light: #6fa15d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a18",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 108.98,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51102,
    "c": 0.15152,
    "h": 140.5
  },
  "luminance": 0.14477
}

Semantic roles & 50–950 ramp

primary
#2A7A18
secondary
#9A3FAF
accent
#3EEACA
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7A18

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

Preview Lab → · Contrast checker → · Palette generator →

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