#2A8418#2A8418

#2A8418 is a mid, vivid green. Relative luminance 0.171; OKLCH L 53.9% C 0.163 H 140.9°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#2A8418
RGBrgb(42, 132, 24)
HSLhsl(110, 69%, 31%)
HSVhsv(110, 82%, 52%)
CMYKcmyk(68.2%, 0%, 81.8%, 48.2%)
CIE-LABlab(48.34, -46.33, 46.36)
CIE-LCHlch(48.34, 65.54, 134.98°)
OKLaboklab(53.94% -0.1267 0.1031)
OKLCHoklch(53.94% 0.163 140.9)
XYZxyz(9.3705, 17.0598, 3.6630)
Luminance0.1706 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8418 #721884
analogous
#608418 #2A8418 #18843C
triadic
#2A8418 #182A84 #84182A
tetradic
#2A8418 #186084 #721884 #843C18
square
#2A8418 #186084 #721884 #843C18
split-complementary
#2A8418 #3C1884 #841860
monochromatic
#091C05 #1A500F #2A8418 #3AB821 #56DB3B

Accessibility & contrast

On white

4.76
#2A8418 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#2A8418 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8418
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8418#FFFFFF#000000##FFFFFF
##2A84181.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#7D7025
Tritanopia (blue-blind)
#198070
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2a8418;
/* rgb */ color: rgb(42, 132, 24);
/* oklch */ color: oklch(53.9% 0.163 140.9);
Tailwind
colors: {
  custom: {
    50: '#71a95f',
    500: '#2a8418',
    950: '#000000',
  },
}
SCSS
$custom: #2a8418;
$custom-light: #71a95f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8418",
  "rgb": {
    "r": 42,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 110,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53941,
    "c": 0.16341,
    "h": 140.9
  },
  "luminance": 0.17061
}

Semantic roles & 50–950 ramp

primary
#2A8418
secondary
#A440B8
accent
#3CECCF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2A8418

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

Preview Lab → · Contrast checker → · Palette generator →

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