#2A8726#2A8726

#2A8726 is a mid, vivid green. Relative luminance 0.180; OKLCH L 54.9% C 0.159 H 142.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#2A8726
RGBrgb(42, 135, 38)
HSLhsl(118, 56%, 34%)
HSVhsv(118, 72%, 53%)
CMYKcmyk(68.9%, 0%, 71.9%, 47.1%)
CIE-LABlab(49.45, -46.31, 42.31)
CIE-LCHlch(49.45, 62.73, 137.58°)
OKLaboklab(54.89% -0.1259 0.0967)
OKLCHoklch(54.89% 0.159 142.5)
XYZxyz(9.9681, 17.9591, 4.7745)
Luminance0.1796 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8726 #832687
analogous
#5B8726 #2A8726 #268753
triadic
#2A8726 #262A87 #87262A
tetradic
#2A8726 #265B87 #832687 #875326
square
#2A8726 #265B87 #832687 #875326
split-complementary
#2A8726 #532687 #87265B
monochromatic
#0C270B #1B5719 #2A8726 #39B733 #5DD058

Accessibility & contrast

On white

4.57
#2A8726 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#2A8726 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8726
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8726#FFFFFF#000000##000000
##2A87261.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A17
Deuteranopia (green-blind)
#7F732F
Tritanopia (blue-blind)
#148374
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2a8726;
/* rgb */ color: rgb(42, 135, 38);
/* oklch */ color: oklch(54.9% 0.159 142.5);
Tailwind
colors: {
  custom: {
    50: '#71ab66',
    500: '#2a8726',
    950: '#000000',
  },
}
SCSS
$custom: #2a8726;
$custom-light: #71ab66;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8726",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 38
  },
  "hsl": {
    "h": 117.526,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.54891,
    "c": 0.15877,
    "h": 142.5
  },
  "luminance": 0.1796
}

Semantic roles & 50–950 ramp

primary
#2A8726
secondary
#B154B5
accent
#48DFD9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8726

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

Preview Lab → · Contrast checker → · Palette generator →

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