#2A8011#2A8011

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

Color values

HEX#2A8011
RGBrgb(42, 128, 17)
HSLhsl(106, 77%, 28%)
HSVhsv(106, 87%, 50%)
CMYKcmyk(67.2%, 0%, 86.7%, 49.8%)
CIE-LABlab(46.94, -45.29, 47.11)
CIE-LCHlch(46.94, 65.35, 133.87°)
OKLaboklab(52.77% -0.1243 0.1037)
OKLCHoklch(52.77% 0.162 140.2)
XYZxyz(8.7748, 15.9702, 3.1503)
Luminance0.1597 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8011 #671180
analogous
#618011 #2A8011 #11802F
triadic
#2A8011 #112A80 #80112A
tetradic
#2A8011 #116180 #671180 #802F11
square
#2A8011 #116180 #671180 #802F11
split-complementary
#2A8011 #2F1180 #801161
monochromatic
#091B04 #184A0A #2A8011 #3CB618 #53E329

Accessibility & contrast

On white

5.01
#2A8011 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#2A8011 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8011
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8011#FFFFFF#000000##FFFFFF
##2A80111.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847300
Deuteranopia (green-blind)
#7A6D20
Tritanopia (blue-blind)
#1C7C6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a8011;
/* rgb */ color: rgb(42, 128, 17);
/* oklch */ color: oklch(52.8% 0.162 140.2);
Tailwind
colors: {
  custom: {
    50: '#71a65b',
    500: '#2a8011',
    950: '#000000',
  },
}
SCSS
$custom: #2a8011;
$custom-light: #71a65b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8011",
  "rgb": {
    "r": 42,
    "g": 128,
    "b": 17
  },
  "hsl": {
    "h": 106.486,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5277,
    "c": 0.16188,
    "h": 140.2
  },
  "luminance": 0.15971
}

Semantic roles & 50–950 ramp

primary
#2A8011
secondary
#9937B6
accent
#35F3C8
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2A8011

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

Preview Lab → · Contrast checker → · Palette generator →

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