#2A8015#2A8015

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

Color values

HEX#2A8015
RGBrgb(42, 128, 21)
HSLhsl(108, 72%, 29%)
HSVhsv(108, 84%, 50%)
CMYKcmyk(67.2%, 0%, 83.6%, 49.8%)
CIE-LABlab(46.95, -45.08, 45.99)
CIE-LCHlch(46.95, 64.40, 134.42°)
OKLaboklab(52.79% -0.1235 0.1019)
OKLCHoklch(52.79% 0.16 140.5)
XYZxyz(8.8089, 15.9838, 3.3303)
Luminance0.1598 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8015 #6B1580
analogous
#608015 #2A8015 #158036
triadic
#2A8015 #152A80 #80152A
tetradic
#2A8015 #156080 #6B1580 #803615
square
#2A8015 #156080 #6B1580 #803615
split-complementary
#2A8015 #361580 #801560
monochromatic
#091A04 #194B0C #2A8015 #3BB51E #54DD32

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A8015#FFFFFF#000000##FFFFFF
##2A80151.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)
#796D22
Tritanopia (blue-blind)
#1B7C6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a8015;
/* rgb */ color: rgb(42, 128, 21);
/* oklch */ color: oklch(52.8% 0.160 140.5);
Tailwind
colors: {
  custom: {
    50: '#71a65d',
    500: '#2a8015',
    950: '#000000',
  },
}
SCSS
$custom: #2a8015;
$custom-light: #71a65d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8015",
  "rgb": {
    "r": 42,
    "g": 128,
    "b": 21
  },
  "hsl": {
    "h": 108.224,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.5279,
    "c": 0.16016,
    "h": 140.5
  },
  "luminance": 0.15985
}

Semantic roles & 50–950 ramp

primary
#2A8015
secondary
#9D3CB5
accent
#39EFCB
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2A8015

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

Preview Lab → · Contrast checker → · Palette generator →

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