#21A42F#21A42F

#21A42F is a light, vivid green. Relative luminance 0.271; OKLCH L 62.8% C 0.190 H 144.1°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#21A42F
RGBrgb(33, 164, 47)
HSLhsl(126, 66%, 39%)
HSVhsv(126, 80%, 64%)
CMYKcmyk(79.9%, 0%, 71.3%, 35.7%)
CIE-LABlab(59.05, -56.83, 48.68)
CIE-LCHlch(59.05, 74.83, 139.42°)
OKLaboklab(62.83% -0.1536 0.1112)
OKLCHoklch(62.83% 0.19 144.1)
XYZxyz(14.4148, 27.0778, 7.1556)
Luminance0.2708 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21A42F #A42196
analogous
#54A421 #21A42F #21A470
triadic
#21A42F #2F21A4 #A42F21
tetradic
#21A42F #2154A4 #A42196 #A47021
square
#21A42F #2154A4 #A42196 #A47021
split-complementary
#21A42F #7021A4 #A42154
monochromatic
#0C3E12 #177120 #21A42F #2DD53F #60DF6E

Accessibility & contrast

On white

3.27
#21A42F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#21A42F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #21A42F
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21A42F#FFFFFF#000000##000000
##21A42F1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A7941D
Deuteranopia (green-blind)
#998A3B
Tritanopia (blue-blind)
#009F8D
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #21a42f;
/* rgb */ color: rgb(33, 164, 47);
/* oklch */ color: oklch(62.8% 0.190 144.1);
Tailwind
colors: {
  custom: {
    50: '#75c06e',
    500: '#21a42f',
    950: '#000000',
  },
}
SCSS
$custom: #21a42f;
$custom-light: #75c06e;
$custom-dark: #000000;
JSON
{
  "hex": "#21a42f",
  "rgb": {
    "r": 33,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 126.412,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.62829,
    "c": 0.18965,
    "h": 144.1
  },
  "luminance": 0.27079
}

Semantic roles & 50–950 ramp

primary
#21A42F
secondary
#C45DB9
accent
#3ED7E9
background
#F7FCF6
surface
#EEF8EC
border
#C9D1C7
text
#0A1208
muted
#7C817B

Preview Lab

Preview with #21A42F

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

Preview Lab → · Contrast checker → · Palette generator →

#21A42F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva