#2A8A18#2A8A18

#2A8A18 is a mid, vivid green. Relative luminance 0.187; OKLCH L 55.6% C 0.170 H 141.0°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#2A8A18
RGBrgb(42, 138, 24)
HSLhsl(111, 70%, 32%)
HSVhsv(111, 83%, 54%)
CMYKcmyk(69.6%, 0%, 82.6%, 45.9%)
CIE-LABlab(50.37, -48.43, 48.28)
CIE-LCHlch(50.37, 68.38, 135.09°)
OKLaboklab(55.63% -0.1324 0.1071)
OKLCHoklch(55.63% 0.17 141)
XYZxyz(10.2077, 18.7341, 3.9421)
Luminance0.1873 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8A18 #78188A
analogous
#638A18 #2A8A18 #188A3F
triadic
#2A8A18 #182A8A #8A182A
tetradic
#2A8A18 #18638A #78188A #8A3F18
square
#2A8A18 #18638A #78188A #8A3F18
split-complementary
#2A8A18 #3F188A #8A1863
monochromatic
#0A2206 #1A560F #2A8A18 #3ABE21 #58DE3F

Accessibility & contrast

On white

4.42
#2A8A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#2A8A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8A18
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8A18#FFFFFF#000000##000000
##2A8A181.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#837526
Tritanopia (blue-blind)
#168575
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a8a18;
/* rgb */ color: rgb(42, 138, 24);
/* oklch */ color: oklch(55.6% 0.170 141.0);
Tailwind
colors: {
  custom: {
    50: '#73ad60',
    500: '#2a8a18',
    950: '#000000',
  },
}
SCSS
$custom: #2a8a18;
$custom-light: #73ad60;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8a18",
  "rgb": {
    "r": 42,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 110.526,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55632,
    "c": 0.17034,
    "h": 141
  },
  "luminance": 0.18735
}

Semantic roles & 50–950 ramp

primary
#2A8A18
secondary
#AA40BD
accent
#3BEDD1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2A8A18

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

Preview Lab → · Contrast checker → · Palette generator →

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