#2A8F17#2A8F17

#2A8F17 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#2A8F17
RGBrgb(42, 143, 23)
HSLhsl(111, 72%, 33%)
HSVhsv(111, 84%, 56%)
CMYKcmyk(70.6%, 0%, 83.9%, 43.9%)
CIE-LABlab(52.06, -50.21, 50.13)
CIE-LCHlch(52.06, 70.95, 135.04°)
OKLaboklab(57.03% -0.1373 0.1109)
OKLCHoklch(57.03% 0.176 141.1)
XYZxyz(10.9314, 20.1979, 4.1329)
Luminance0.2020 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8F17 #7C178F
analogous
#668F17 #2A8F17 #178F40
triadic
#2A8F17 #172A8F #8F172A
tetradic
#2A8F17 #17668F #7C178F #8F4017
square
#2A8F17 #17668F #7C178F #8F4017
split-complementary
#2A8F17 #40178F #8F1766
monochromatic
#0B2606 #1B5A0F #2A8F17 #39C41F #59E040

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A8F17#FFFFFF#000000##000000
##2A8F171.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)
#877926
Tritanopia (blue-blind)
#138A79
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #2a8f17;
/* rgb */ color: rgb(42, 143, 23);
/* oklch */ color: oklch(57.0% 0.176 141.1);
Tailwind
colors: {
  custom: {
    50: '#74b160',
    500: '#2a8f17',
    950: '#000000',
  },
}
SCSS
$custom: #2a8f17;
$custom-light: #74b160;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8f17",
  "rgb": {
    "r": 42,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 110.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57029,
    "c": 0.17644,
    "h": 141.1
  },
  "luminance": 0.20199
}

Semantic roles & 50–950 ramp

primary
#2A8F17
secondary
#AD41C1
accent
#39EFD2
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091105
muted
#7B807A

Preview Lab

Preview with #2A8F17

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

Preview Lab → · Contrast checker → · Palette generator →

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