#2A8428#2A8428

#2A8428 is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.1% C 0.154 H 142.8°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#2A8428
RGBrgb(42, 132, 40)
HSLhsl(119, 53%, 34%)
HSVhsv(119, 70%, 52%)
CMYKcmyk(68.2%, 0%, 69.7%, 48.2%)
CIE-LABlab(48.44, -45.02, 40.40)
CIE-LCHlch(48.44, 60.49, 138.09°)
OKLaboklab(54.07% -0.1224 0.0929)
OKLCHoklch(54.07% 0.154 142.8)
XYZxyz(9.5886, 17.1470, 4.8115)
Luminance0.1715 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8428 #822884
analogous
#588428 #2A8428 #288454
triadic
#2A8428 #282A84 #84282A
tetradic
#2A8428 #285884 #822884 #845428
square
#2A8428 #285884 #822884 #845428
split-complementary
#2A8428 #542884 #842858
monochromatic
#0C260C #1B551A #2A8428 #39B336 #5CCD5A

Accessibility & contrast

On white

4.74
#2A8428 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#2A8428 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8428
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8428#FFFFFF#000000##FFFFFF
##2A84281.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87781B
Deuteranopia (green-blind)
#7C7031
Tritanopia (blue-blind)
#158071
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2a8428;
/* rgb */ color: rgb(42, 132, 40);
/* oklch */ color: oklch(54.1% 0.154 142.8);
Tailwind
colors: {
  custom: {
    50: '#70a967',
    500: '#2a8428',
    950: '#000000',
  },
}
SCSS
$custom: #2a8428;
$custom-light: #70a967;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8428",
  "rgb": {
    "r": 42,
    "g": 132,
    "b": 40
  },
  "hsl": {
    "h": 118.696,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.54066,
    "c": 0.15363,
    "h": 142.8
  },
  "luminance": 0.17148
}

Semantic roles & 50–950 ramp

primary
#2A8428
secondary
#B056B2
accent
#4BDDDA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #2A8428

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

Preview Lab → · Contrast checker → · Palette generator →

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