#42A118#42A118

#42A118 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#42A118
RGBrgb(66, 161, 24)
HSLhsl(102, 74%, 36%)
HSVhsv(102, 85%, 63%)
CMYKcmyk(59%, 0%, 85.1%, 36.9%)
CIE-LABlab(58.71, -50.88, 56.14)
CIE-LCHlch(58.71, 75.77, 132.18°)
OKLaboklab(62.73% -0.1405 0.1234)
OKLCHoklch(62.73% 0.187 138.7)
XYZxyz(15.1559, 26.7126, 5.2213)
Luminance0.2671 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A118 #7718A1
analogous
#87A118 #42A118 #18A133
triadic
#42A118 #1842A1 #A11842
tetradic
#42A118 #1887A1 #7718A1 #A13318
square
#42A118 #1887A1 #7718A1 #A13318
split-complementary
#42A118 #3318A1 #A11887
monochromatic
#163608 #2C6C10 #42A118 #58D620 #7DE54F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42A118#FFFFFF#000000##000000
##42A1181.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: #42a118;
/* rgb */ color: rgb(66, 161, 24);
/* oklch */ color: oklch(62.7% 0.187 138.7);
Tailwind
colors: {
  custom: {
    50: '#82be64',
    500: '#42a118',
    950: '#000000',
  },
}
SCSS
$custom: #42a118;
$custom-light: #82be64;
$custom-dark: #000000;
JSON
{
  "hex": "#42a118",
  "rgb": {
    "r": 66,
    "g": 161,
    "b": 24
  },
  "hsl": {
    "h": 101.606,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.62728,
    "c": 0.18697,
    "h": 138.7
  },
  "luminance": 0.26714
}

Semantic roles & 50–950 ramp

primary
#42A118
secondary
#A24EC7
accent
#37F1B8
background
#F8FBF6
surface
#F0F7EB
border
#CBD0C6
text
#0C1206
muted
#7D817A

Preview Lab

Preview with #42A118

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

Preview Lab → · Contrast checker → · Palette generator →

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