#2A8018#2A8018

#2A8018 is a mid, vivid green. Relative luminance 0.160; OKLCH L 52.8% C 0.159 H 140.7°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#2A8018
RGBrgb(42, 128, 24)
HSLhsl(110, 68%, 30%)
HSVhsv(110, 81%, 50%)
CMYKcmyk(67.2%, 0%, 81.3%, 49.8%)
CIE-LABlab(46.97, -44.89, 45.06)
CIE-LCHlch(46.97, 63.61, 134.89°)
OKLaboklab(52.81% -0.1229 0.1004)
OKLCHoklch(52.81% 0.159 140.7)
XYZxyz(8.8384, 15.9956, 3.4857)
Luminance0.1600 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8018 #6E1880
analogous
#5E8018 #2A8018 #18803A
triadic
#2A8018 #182A80 #80182A
tetradic
#2A8018 #185E80 #6E1880 #803A18
square
#2A8018 #185E80 #6E1880 #803A18
split-complementary
#2A8018 #3A1880 #80185E
monochromatic
#081A05 #194C0E #2A8018 #3BB422 #55DA39

Accessibility & contrast

On white

5.00
#2A8018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#2A8018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8018
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8018#FFFFFF#000000##FFFFFF
##2A80181.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#796D24
Tritanopia (blue-blind)
#1B7C6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a8018;
/* rgb */ color: rgb(42, 128, 24);
/* oklch */ color: oklch(52.8% 0.159 140.7);
Tailwind
colors: {
  custom: {
    50: '#70a65e',
    500: '#2a8018',
    950: '#000000',
  },
}
SCSS
$custom: #2a8018;
$custom-light: #70a65e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8018",
  "rgb": {
    "r": 42,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 109.615,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52808,
    "c": 0.1587,
    "h": 140.7
  },
  "luminance": 0.15997
}

Semantic roles & 50–950 ramp

primary
#2A8018
secondary
#A040B4
accent
#3DEBCD
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A8018

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

Preview Lab → · Contrast checker → · Palette generator →

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