#42AC28#42AC28

#42AC28 is a light, vivid green. Relative luminance 0.308; OKLCH L 65.8% C 0.192 H 140.3°. Best body text is #000000 at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#42AC28
RGBrgb(66, 172, 40)
HSLhsl(108, 62%, 42%)
HSVhsv(108, 77%, 67%)
CMYKcmyk(61.6%, 0%, 76.7%, 32.5%)
CIE-LABlab(62.35, -53.92, 54.82)
CIE-LCHlch(62.35, 76.89, 134.52°)
OKLaboklab(65.77% -0.1479 0.1229)
OKLCHoklch(65.77% 0.192 140.3)
XYZxyz(17.3815, 30.8149, 7.0390)
Luminance0.3082 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42AC28 #9228AC
analogous
#84AC28 #42AC28 #28AC50
triadic
#42AC28 #2842AC #AC2842
tetradic
#42AC28 #2884AC #9228AC #AC5028
square
#42AC28 #2884AC #9228AC #AC5028
split-complementary
#42AC28 #5028AC #AC2884
monochromatic
#1C4911 #2F7A1C #42AC28 #5CD23F #86DE71

Accessibility & contrast

On white

2.93
#42AC28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.16
#42AC28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42AC28
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42AC28#FFFFFF#000000##000000
##42AC281.002.937.167.16
#FFFFFF2.931.0021.0021.00
#0000007.1621.001.001.00
##0000007.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C07
Deuteranopia (green-blind)
#A49337
Tritanopia (blue-blind)
#33A693
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #42ac28;
/* rgb */ color: rgb(66, 172, 40);
/* oklch */ color: oklch(65.8% 0.192 140.3);
Tailwind
colors: {
  custom: {
    50: '#83c66c',
    500: '#42ac28',
    950: '#000000',
  },
}
SCSS
$custom: #42ac28;
$custom-light: #83c66c;
$custom-dark: #000000;
JSON
{
  "hex": "#42ac28",
  "rgb": {
    "r": 66,
    "g": 172,
    "b": 40
  },
  "hsl": {
    "h": 108.182,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.65766,
    "c": 0.19224,
    "h": 140.3
  },
  "luminance": 0.30816
}

Semantic roles & 50–950 ramp

primary
#42AC28
secondary
#B36BC5
accent
#42E5C5
background
#F8FCF6
surface
#F0F8EC
border
#CBD1C7
text
#0C1307
muted
#7D827A

Preview Lab

Preview with #42AC28

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

Preview Lab → · Contrast checker → · Palette generator →

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