#2A8115#2A8115

#2A8115 is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.1% C 0.161 H 140.5°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#2A8115
RGBrgb(42, 129, 21)
HSLhsl(108, 72%, 29%)
HSVhsv(108, 84%, 51%)
CMYKcmyk(67.4%, 0%, 83.7%, 49.4%)
CIE-LABlab(47.30, -45.44, 46.31)
CIE-LCHlch(47.30, 64.88, 134.45°)
OKLaboklab(53.07% -0.1245 0.1026)
OKLCHoklch(53.07% 0.161 140.5)
XYZxyz(8.9400, 16.2460, 3.3740)
Luminance0.1625 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8115 #6C1581
analogous
#608115 #2A8115 #158136
triadic
#2A8115 #152A81 #81152A
tetradic
#2A8115 #156081 #6C1581 #813615
square
#2A8115 #156081 #6C1581 #813615
split-complementary
#2A8115 #361581 #811560
monochromatic
#091A04 #194C0C #2A8115 #3BB61E #54DE33

Accessibility & contrast

On white

4.94
#2A8115 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#2A8115 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8115
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8115#FFFFFF#000000##FFFFFF
##2A81151.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857400
Deuteranopia (green-blind)
#7A6E23
Tritanopia (blue-blind)
#1B7D6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2a8115;
/* rgb */ color: rgb(42, 129, 21);
/* oklch */ color: oklch(53.1% 0.161 140.5);
Tailwind
colors: {
  custom: {
    50: '#71a65d',
    500: '#2a8115',
    950: '#000000',
  },
}
SCSS
$custom: #2a8115;
$custom-light: #71a65d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8115",
  "rgb": {
    "r": 42,
    "g": 129,
    "b": 21
  },
  "hsl": {
    "h": 108.333,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53074,
    "c": 0.16133,
    "h": 140.5
  },
  "luminance": 0.16247
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A8115

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

Preview Lab → · Contrast checker → · Palette generator →

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