#2A9821#2A9821

#2A9821 is a mid, vivid green. Relative luminance 0.231; OKLCH L 59.6% C 0.182 H 142.0°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#2A9821
RGBrgb(42, 152, 33)
HSLhsl(115, 64%, 36%)
HSVhsv(115, 78%, 60%)
CMYKcmyk(72.4%, 0%, 78.3%, 40.4%)
CIE-LABlab(55.13, -52.62, 49.93)
CIE-LCHlch(55.13, 72.54, 136.51°)
OKLaboklab(59.6% -0.1433 0.1119)
OKLCHoklch(59.6% 0.182 142)
XYZxyz(12.4569, 23.0571, 5.2325)
Luminance0.2306 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A9821 #8F2198
analogous
#669821 #2A9821 #219854
triadic
#2A9821 #212A98 #98212A
tetradic
#2A9821 #216698 #8F2198 #985421
square
#2A9821 #216698 #8F2198 #985421
split-complementary
#2A9821 #542198 #982166
monochromatic
#0E330B #1C6616 #2A9821 #38CA2C #62DB59

Accessibility & contrast

On white

3.74
#2A9821 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#2A9821 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A9821
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A9821#FFFFFF#000000##000000
##2A98211.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8903
Deuteranopia (green-blind)
#8F812F
Tritanopia (blue-blind)
#079382
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #2a9821;
/* rgb */ color: rgb(42, 152, 33);
/* oklch */ color: oklch(59.6% 0.182 142.0);
Tailwind
colors: {
  custom: {
    50: '#75b766',
    500: '#2a9821',
    950: '#000000',
  },
}
SCSS
$custom: #2a9821;
$custom-light: #75b766;
$custom-dark: #000000;
JSON
{
  "hex": "#2a9821",
  "rgb": {
    "r": 42,
    "g": 152,
    "b": 33
  },
  "hsl": {
    "h": 115.462,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.59595,
    "c": 0.1818,
    "h": 142
  },
  "luminance": 0.23059
}

Semantic roles & 50–950 ramp

primary
#2A9821
secondary
#B756BF
accent
#40E7DB
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #2A9821

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

Preview Lab → · Contrast checker → · Palette generator →

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