#2A8A28#2A8A28

#2A8A28 is a mid, vivid green. Relative luminance 0.188; OKLCH L 55.8% C 0.161 H 142.8°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#2A8A28
RGBrgb(42, 138, 40)
HSLhsl(119, 55%, 35%)
HSVhsv(119, 71%, 54%)
CMYKcmyk(69.6%, 0%, 71%, 45.9%)
CIE-LABlab(50.48, -47.20, 42.57)
CIE-LCHlch(50.48, 63.56, 137.95°)
OKLaboklab(55.75% -0.1282 0.0975)
OKLCHoklch(55.75% 0.161 142.8)
XYZxyz(10.4257, 18.8213, 5.0905)
Luminance0.1882 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8A28 #88288A
analogous
#5B8A28 #2A8A28 #288A57
triadic
#2A8A28 #282A8A #8A282A
tetradic
#2A8A28 #285B8A #88288A #8A5728
square
#2A8A28 #285B8A #88288A #8A5728
split-complementary
#2A8A28 #57288A #8A285B
monochromatic
#0D2B0C #1C5B1A #2A8A28 #38B936 #5FD05D

Accessibility & contrast

On white

4.41
#2A8A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#2A8A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8A28
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8A28#FFFFFF#000000##000000
##2A8A281.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D19
Deuteranopia (green-blind)
#827531
Tritanopia (blue-blind)
#118676
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a8a28;
/* rgb */ color: rgb(42, 138, 40);
/* oklch */ color: oklch(55.8% 0.161 142.8);
Tailwind
colors: {
  custom: {
    50: '#72ad67',
    500: '#2a8a28',
    950: '#000000',
  },
}
SCSS
$custom: #2a8a28;
$custom-light: #72ad67;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8a28",
  "rgb": {
    "r": 42,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 118.776,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.5575,
    "c": 0.16107,
    "h": 142.8
  },
  "luminance": 0.18822
}

Semantic roles & 50–950 ramp

primary
#2A8A28
secondary
#B359B5
accent
#49DEDB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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