#2A8421#2A8421

#2A8421 is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.0% C 0.158 H 141.8°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#2A8421
RGBrgb(42, 132, 33)
HSLhsl(115, 60%, 32%)
HSVhsv(115, 75%, 52%)
CMYKcmyk(68.2%, 0%, 75%, 48.2%)
CIE-LABlab(48.39, -45.67, 43.23)
CIE-LCHlch(48.39, 62.88, 136.57°)
OKLaboklab(54% -0.1245 0.0979)
OKLCHoklch(54% 0.158 141.8)
XYZxyz(9.4801, 17.1036, 4.2403)
Luminance0.1711 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8421 #7B2184
analogous
#5C8421 #2A8421 #218449
triadic
#2A8421 #212A84 #84212A
tetradic
#2A8421 #215C84 #7B2184 #844921
square
#2A8421 #215C84 #7B2184 #844921
split-complementary
#2A8421 #492184 #84215C
monochromatic
#0B2209 #1A5315 #2A8421 #3AB52D #59D24D

Accessibility & contrast

On white

4.75
#2A8421 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#2A8421 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8421
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8421#FFFFFF#000000##FFFFFF
##2A84211.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87770F
Deuteranopia (green-blind)
#7D702B
Tritanopia (blue-blind)
#178071
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2a8421;
/* rgb */ color: rgb(42, 132, 33);
/* oklch */ color: oklch(54.0% 0.158 141.8);
Tailwind
colors: {
  custom: {
    50: '#71a963',
    500: '#2a8421',
    950: '#000000',
  },
}
SCSS
$custom: #2a8421;
$custom-light: #71a963;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8421",
  "rgb": {
    "r": 42,
    "g": 132,
    "b": 33
  },
  "hsl": {
    "h": 114.545,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.54004,
    "c": 0.15837,
    "h": 141.8
  },
  "luminance": 0.17105
}

Semantic roles & 50–950 ramp

primary
#2A8421
secondary
#AC4BB6
accent
#45E3D5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8421

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

Preview Lab → · Contrast checker → · Palette generator →

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