#2A8017#2A8017

#2A8017 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#2A8017
RGBrgb(42, 128, 23)
HSLhsl(109, 70%, 30%)
HSVhsv(109, 82%, 50%)
CMYKcmyk(67.2%, 0%, 82%, 49.8%)
CIE-LABlab(46.96, -44.96, 45.38)
CIE-LCHlch(46.96, 63.88, 134.73°)
OKLaboklab(52.8% -0.1231 0.1009)
OKLCHoklch(52.8% 0.159 140.7)
XYZxyz(8.8282, 15.9916, 3.4319)
Luminance0.1599 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8017 #6D1780
analogous
#5F8017 #2A8017 #178039
triadic
#2A8017 #172A80 #80172A
tetradic
#2A8017 #175F80 #6D1780 #803917
square
#2A8017 #175F80 #6D1780 #803917
split-complementary
#2A8017 #391780 #80175F
monochromatic
#091A05 #194C0E #2A8017 #3BB420 #54DB36

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A8017#FFFFFF#000000##FFFFFF
##2A80171.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: #2a8017;
/* rgb */ color: rgb(42, 128, 23);
/* oklch */ color: oklch(52.8% 0.159 140.7);
Tailwind
colors: {
  custom: {
    50: '#70a65e',
    500: '#2a8017',
    950: '#000000',
  },
}
SCSS
$custom: #2a8017;
$custom-light: #70a65e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8017",
  "rgb": {
    "r": 42,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 109.143,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52802,
    "c": 0.15921,
    "h": 140.7
  },
  "luminance": 0.15992
}

Semantic roles & 50–950 ramp

primary
#2A8017
secondary
#9F3EB4
accent
#3BECCC
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A8017

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

Preview Lab → · Contrast checker → · Palette generator →

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