#2A8118#2A8118

#2A8118 is a mid, vivid green. Relative luminance 0.163; OKLCH L 53.1% C 0.160 H 140.8°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#2A8118
RGBrgb(42, 129, 24)
HSLhsl(110, 69%, 30%)
HSVhsv(110, 81%, 51%)
CMYKcmyk(67.4%, 0%, 81.4%, 49.4%)
CIE-LABlab(47.31, -45.25, 45.39)
CIE-LCHlch(47.31, 64.09, 134.91°)
OKLaboklab(53.09% -0.1239 0.1011)
OKLCHoklch(53.09% 0.16 140.8)
XYZxyz(8.9695, 16.2578, 3.5294)
Luminance0.1626 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8118 #6F1881
analogous
#5F8118 #2A8118 #18813A
triadic
#2A8118 #182A81 #81182A
tetradic
#2A8118 #185F81 #6F1881 #813A18
square
#2A8118 #185F81 #6F1881 #813A18
split-complementary
#2A8118 #3A1881 #81185F
monochromatic
#081A05 #194D0E #2A8118 #3BB522 #55DA39

Accessibility & contrast

On white

4.94
#2A8118 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#2A8118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8118
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8118#FFFFFF#000000##FFFFFF
##2A81181.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857400
Deuteranopia (green-blind)
#7A6E24
Tritanopia (blue-blind)
#1A7D6E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2a8118;
/* rgb */ color: rgb(42, 129, 24);
/* oklch */ color: oklch(53.1% 0.160 140.8);
Tailwind
colors: {
  custom: {
    50: '#71a65e',
    500: '#2a8118',
    950: '#000000',
  },
}
SCSS
$custom: #2a8118;
$custom-light: #71a65e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8118",
  "rgb": {
    "r": 42,
    "g": 129,
    "b": 24
  },
  "hsl": {
    "h": 109.714,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.53092,
    "c": 0.15988,
    "h": 140.8
  },
  "luminance": 0.16259
}

Semantic roles & 50–950 ramp

primary
#2A8118
secondary
#A140B5
accent
#3CEBCD
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2A8118

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

Preview Lab → · Contrast checker → · Palette generator →

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