#42A221#42A221

#42A221 is a light, vivid green. Relative luminance 0.271; OKLCH L 63.0% C 0.184 H 139.3°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#42A221
RGBrgb(66, 162, 33)
HSLhsl(105, 66%, 38%)
HSVhsv(105, 80%, 64%)
CMYKcmyk(59.3%, 0%, 79.6%, 36.5%)
CIE-LABlab(59.07, -50.77, 53.94)
CIE-LCHlch(59.07, 74.07, 133.27°)
OKLaboklab(63.04% -0.1398 0.12)
OKLCHoklch(63.04% 0.184 139.3)
XYZxyz(15.4410, 27.1073, 5.8571)
Luminance0.2711 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A221 #8121A2
analogous
#82A221 #42A221 #21A240
triadic
#42A221 #2142A2 #A22142
tetradic
#42A221 #2182A2 #8121A2 #A24021
square
#42A221 #2182A2 #8121A2 #A24021
split-complementary
#42A221 #4021A2 #A22182
monochromatic
#193C0C #2D6F17 #42A221 #57D42C #80DE5F

Accessibility & contrast

On white

3.27
#42A221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#42A221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42A221
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42A221#FFFFFF#000000##000000
##42A2211.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)
#A79300
Deuteranopia (green-blind)
#9B8B30
Tritanopia (blue-blind)
#379C8A
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #42a221;
/* rgb */ color: rgb(66, 162, 33);
/* oklch */ color: oklch(63.0% 0.184 139.3);
Tailwind
colors: {
  custom: {
    50: '#82be67',
    500: '#42a221',
    950: '#000000',
  },
}
SCSS
$custom: #42a221;
$custom-light: #82be67;
$custom-dark: #000000;
JSON
{
  "hex": "#42a221",
  "rgb": {
    "r": 66,
    "g": 162,
    "b": 33
  },
  "hsl": {
    "h": 104.651,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.63044,
    "c": 0.18422,
    "h": 139.3
  },
  "luminance": 0.27109
}

Semantic roles & 50–950 ramp

primary
#42A221
secondary
#A95CC3
accent
#3FE9BE
background
#F8FBF6
surface
#F0F7EB
border
#CBD0C6
text
#0C1207
muted
#7D817A

Preview Lab

Preview with #42A221

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

Preview Lab → · Contrast checker → · Palette generator →

#42A221 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva