#42A628#42A628

#42A628 is a light, vivid green. Relative luminance 0.286; OKLCH L 64.2% C 0.185 H 140.1°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#42A628
RGBrgb(66, 166, 40)
HSLhsl(108, 61%, 40%)
HSVhsv(108, 76%, 65%)
CMYKcmyk(60.2%, 0%, 75.9%, 34.9%)
CIE-LABlab(60.41, -51.76, 52.91)
CIE-LCHlch(60.41, 74.02, 134.37°)
OKLaboklab(64.16% -0.1421 0.1189)
OKLCHoklch(64.16% 0.185 140.1)
XYZxyz(16.2653, 28.5824, 6.6669)
Luminance0.2858 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A628 #8C28A6
analogous
#81A628 #42A628 #28A64D
triadic
#42A628 #2842A6 #A62842
tetradic
#42A628 #2881A6 #8C28A6 #A64D28
square
#42A628 #2881A6 #8C28A6 #A64D28
split-complementary
#42A628 #4D28A6 #A62881
monochromatic
#1B4310 #2E751C #42A628 #5AD03B #84DC6D

Accessibility & contrast

On white

3.13
#42A628 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#42A628 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42A628
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42A628#FFFFFF#000000##000000
##42A6281.003.136.726.72
#FFFFFF3.131.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB970C
Deuteranopia (green-blind)
#9E8F36
Tritanopia (blue-blind)
#35A08E
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #42a628;
/* rgb */ color: rgb(66, 166, 40);
/* oklch */ color: oklch(64.2% 0.185 140.1);
Tailwind
colors: {
  custom: {
    50: '#82c16b',
    500: '#42a628',
    950: '#000000',
  },
}
SCSS
$custom: #42a628;
$custom-light: #82c16b;
$custom-dark: #000000;
JSON
{
  "hex": "#42a628",
  "rgb": {
    "r": 66,
    "g": 166,
    "b": 40
  },
  "hsl": {
    "h": 107.619,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.64162,
    "c": 0.18524,
    "h": 140.1
  },
  "luminance": 0.28584
}

Semantic roles & 50–950 ramp

primary
#42A628
secondary
#B067C2
accent
#44E4C3
background
#F8FCF6
surface
#F0F8EC
border
#CBD1C7
text
#0C1207
muted
#7D817A

Preview Lab

Preview with #42A628

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

Preview Lab → · Contrast checker → · Palette generator →

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