#2A8F21#2A8F21

#2A8F21 is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.1% C 0.171 H 141.9°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2A8F21
RGBrgb(42, 143, 33)
HSLhsl(115, 63%, 35%)
HSVhsv(115, 77%, 56%)
CMYKcmyk(70.6%, 0%, 76.9%, 43.9%)
CIE-LABlab(52.11, -49.56, 46.96)
CIE-LCHlch(52.11, 68.27, 136.54°)
OKLaboklab(57.09% -0.135 0.1057)
OKLCHoklch(57.09% 0.171 141.9)
XYZxyz(11.0512, 20.2458, 4.7640)
Luminance0.2025 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8F21 #86218F
analogous
#618F21 #2A8F21 #218F4F
triadic
#2A8F21 #212A8F #8F212A
tetradic
#2A8F21 #21618F #86218F #8F4F21
square
#2A8F21 #21618F #86218F #8F4F21
split-complementary
#2A8F21 #4F218F #8F2161
monochromatic
#0D2C0A #1B5D16 #2A8F21 #39C12C #5ED753

Accessibility & contrast

On white

4.16
#2A8F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#2A8F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8F21
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8F21#FFFFFF#000000##000000
##2A8F211.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#928109
Deuteranopia (green-blind)
#87792D
Tritanopia (blue-blind)
#108A7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #2a8f21;
/* rgb */ color: rgb(42, 143, 33);
/* oklch */ color: oklch(57.1% 0.171 141.9);
Tailwind
colors: {
  custom: {
    50: '#73b164',
    500: '#2a8f21',
    950: '#000000',
  },
}
SCSS
$custom: #2a8f21;
$custom-light: #73b164;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8f21",
  "rgb": {
    "r": 42,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 115.091,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.57091,
    "c": 0.17146,
    "h": 141.9
  },
  "luminance": 0.20247
}

Semantic roles & 50–950 ramp

primary
#2A8F21
secondary
#B251BB
accent
#42E6D8
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #2A8F21

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

Preview Lab → · Contrast checker → · Palette generator →

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