#2A8F18#2A8F18

#2A8F18 is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.0% C 0.176 H 141.1°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#2A8F18
RGBrgb(42, 143, 24)
HSLhsl(111, 71%, 33%)
HSVhsv(111, 83%, 56%)
CMYKcmyk(70.6%, 0%, 83.2%, 43.9%)
CIE-LABlab(52.06, -50.15, 49.85)
CIE-LCHlch(52.06, 70.71, 135.17°)
OKLaboklab(57.03% -0.1371 0.1104)
OKLCHoklch(57.03% 0.176 141.1)
XYZxyz(10.9416, 20.2019, 4.1867)
Luminance0.2020 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8F18 #7D188F
analogous
#668F18 #2A8F18 #188F41
triadic
#2A8F18 #182A8F #8F182A
tetradic
#2A8F18 #18668F #7D188F #8F4118
square
#2A8F18 #18668F #7D188F #8F4118
split-complementary
#2A8F18 #41188F #8F1866
monochromatic
#0B2606 #1B5B0F #2A8F18 #39C321 #5ADF42

Accessibility & contrast

On white

4.17
#2A8F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#2A8F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8F18
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8F18#FFFFFF#000000##000000
##2A8F181.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#877927
Tritanopia (blue-blind)
#138A79
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #2a8f18;
/* rgb */ color: rgb(42, 143, 24);
/* oklch */ color: oklch(57.0% 0.176 141.1);
Tailwind
colors: {
  custom: {
    50: '#74b160',
    500: '#2a8f18',
    950: '#000000',
  },
}
SCSS
$custom: #2a8f18;
$custom-light: #74b160;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8f18",
  "rgb": {
    "r": 42,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 110.924,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57034,
    "c": 0.17601,
    "h": 141.1
  },
  "luminance": 0.20203
}

Semantic roles & 50–950 ramp

primary
#2A8F18
secondary
#AD43C0
accent
#3AEED3
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091105
muted
#7B807A

Preview Lab

Preview with #2A8F18

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

Preview Lab → · Contrast checker → · Palette generator →

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