#42A017#42A017

#42A017 is a light, vivid green. Relative luminance 0.264; OKLCH L 62.5% C 0.186 H 138.6°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#42A017
RGBrgb(66, 160, 23)
HSLhsl(101, 75%, 36%)
HSVhsv(101, 86%, 63%)
CMYKcmyk(58.8%, 0%, 85.6%, 37.3%)
CIE-LABlab(58.38, -50.56, 56.10)
CIE-LCHlch(58.38, 75.52, 132.03°)
OKLaboklab(62.45% -0.1397 0.1231)
OKLCHoklch(62.45% 0.186 138.6)
XYZxyz(14.9716, 26.3604, 5.1096)
Luminance0.2636 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A017 #7517A0
analogous
#86A017 #42A017 #17A031
triadic
#42A017 #1742A0 #A01742
tetradic
#42A017 #1786A0 #7517A0 #A03117
square
#42A017 #1786A0 #7517A0 #A03117
split-complementary
#42A017 #3117A0 #A01786
monochromatic
#163508 #2C6A0F #42A017 #58D61F #7CE54C

Accessibility & contrast

On white

3.35
#42A017 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#42A017 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42A017
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42A017#FFFFFF#000000##000000
##42A0171.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59100
Deuteranopia (green-blind)
#99892A
Tritanopia (blue-blind)
#389A88
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #42a017;
/* rgb */ color: rgb(66, 160, 23);
/* oklch */ color: oklch(62.5% 0.186 138.6);
Tailwind
colors: {
  custom: {
    50: '#82bd63',
    500: '#42a017',
    950: '#000000',
  },
}
SCSS
$custom: #42a017;
$custom-light: #82bd63;
$custom-dark: #000000;
JSON
{
  "hex": "#42a017",
  "rgb": {
    "r": 66,
    "g": 160,
    "b": 23
  },
  "hsl": {
    "h": 101.168,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.62454,
    "c": 0.18621,
    "h": 138.6
  },
  "luminance": 0.26362
}

Semantic roles & 50–950 ramp

primary
#42A017
secondary
#A04CC7
accent
#36F1B7
background
#F8FBF6
surface
#F0F7EB
border
#CBD0C6
text
#0C1206
muted
#7D817A

Preview Lab

Preview with #42A017

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

Preview Lab → · Contrast checker → · Palette generator →

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