#42A71C#42A71C

#42A71C is a light, vivid green. Relative luminance 0.289; OKLCH L 64.4% C 0.192 H 139.2°. Best body text is #000000 at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#42A71C
RGBrgb(66, 167, 28)
HSLhsl(104, 71%, 38%)
HSVhsv(104, 83%, 65%)
CMYKcmyk(60.5%, 0%, 83.2%, 34.5%)
CIE-LABlab(60.67, -52.84, 56.88)
CIE-LCHlch(60.67, 77.64, 132.89°)
OKLaboklab(64.36% -0.1456 0.1255)
OKLCHoklch(64.36% 0.192 139.2)
XYZxyz(16.2744, 28.8780, 5.8148)
Luminance0.2888 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A71C #811CA7
analogous
#87A71C #42A71C #1CA73B
triadic
#42A71C #1C42A7 #A71C42
tetradic
#42A71C #1C87A7 #811CA7 #A73B1C
square
#42A71C #1C87A7 #811CA7 #A73B1C
split-complementary
#42A71C #3B1CA7 #A71C87
monochromatic
#193E0A #2D7313 #42A71C #57DB26 #80E35A

Accessibility & contrast

On white

3.10
#42A71C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.78
#42A71C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42A71C
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42A71C#FFFFFF#000000##000000
##42A71C1.003.106.786.78
#FFFFFF3.101.0021.0021.00
#0000006.7821.001.001.00
##0000006.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9700
Deuteranopia (green-blind)
#A08F2E
Tritanopia (blue-blind)
#36A18E
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #42a71c;
/* rgb */ color: rgb(66, 167, 28);
/* oklch */ color: oklch(64.4% 0.192 139.2);
Tailwind
colors: {
  custom: {
    50: '#83c266',
    500: '#42a71c',
    950: '#000000',
  },
}
SCSS
$custom: #42a71c;
$custom-light: #83c266;
$custom-dark: #000000;
JSON
{
  "hex": "#42a71c",
  "rgb": {
    "r": 66,
    "g": 167,
    "b": 28
  },
  "hsl": {
    "h": 103.597,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.6436,
    "c": 0.19219,
    "h": 139.2
  },
  "luminance": 0.2888
}

Semantic roles & 50–950 ramp

primary
#42A71C
secondary
#A958C7
accent
#3AEEBD
background
#F8FCF6
surface
#F0F8EB
border
#CBD1C6
text
#0C1206
muted
#7D817A

Preview Lab

Preview with #42A71C

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

Preview Lab → · Contrast checker → · Palette generator →

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