#42A117#42A117

#42A117 is a light, vivid green. Relative luminance 0.267; OKLCH L 62.7% C 0.187 H 138.7°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#42A117
RGBrgb(66, 161, 23)
HSLhsl(101, 75%, 36%)
HSVhsv(101, 86%, 63%)
CMYKcmyk(59%, 0%, 85.7%, 36.9%)
CIE-LABlab(58.70, -50.92, 56.39)
CIE-LCHlch(58.70, 75.98, 132.09°)
OKLaboklab(62.72% -0.1407 0.1237)
OKLCHoklch(62.72% 0.187 138.7)
XYZxyz(15.1457, 26.7085, 5.1676)
Luminance0.2671 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A117 #7617A1
analogous
#87A117 #42A117 #17A131
triadic
#42A117 #1742A1 #A11742
tetradic
#42A117 #1787A1 #7617A1 #A13117
square
#42A117 #1787A1 #7617A1 #A13117
split-complementary
#42A117 #3117A1 #A11787
monochromatic
#163608 #2C6B0F #42A117 #58D71F #7CE64D

Accessibility & contrast

On white

3.31
#42A117 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#42A117 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42A117
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42A117#FFFFFF#000000##000000
##42A1171.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69200
Deuteranopia (green-blind)
#9A8A2A
Tritanopia (blue-blind)
#389B89
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #42a117;
/* rgb */ color: rgb(66, 161, 23);
/* oklch */ color: oklch(62.7% 0.187 138.7);
Tailwind
colors: {
  custom: {
    50: '#82be63',
    500: '#42a117',
    950: '#000000',
  },
}
SCSS
$custom: #42a117;
$custom-light: #82be63;
$custom-dark: #000000;
JSON
{
  "hex": "#42a117",
  "rgb": {
    "r": 66,
    "g": 161,
    "b": 23
  },
  "hsl": {
    "h": 101.304,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.62724,
    "c": 0.18734,
    "h": 138.7
  },
  "luminance": 0.2671
}

Semantic roles & 50–950 ramp

primary
#42A117
secondary
#A14CC7
accent
#36F2B7
background
#F8FBF6
surface
#F0F7EB
border
#CBD0C6
text
#0C1206
muted
#7D817A

Preview Lab

Preview with #42A117

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

Preview Lab → · Contrast checker → · Palette generator →

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