#42A015#42A015

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

Color values

HEX#42A015
RGBrgb(66, 160, 21)
HSLhsl(101, 77%, 35%)
HSVhsv(101, 87%, 63%)
CMYKcmyk(58.8%, 0%, 86.9%, 37.3%)
CIE-LABlab(58.37, -50.65, 56.57)
CIE-LCHlch(58.37, 75.93, 131.84°)
OKLaboklab(62.45% -0.14 0.1238)
OKLCHoklch(62.45% 0.187 138.5)
XYZxyz(14.9524, 26.3527, 5.0080)
Luminance0.2635 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A015 #7315A0
analogous
#87A015 #42A015 #15A02E
triadic
#42A015 #1542A0 #A01542
tetradic
#42A015 #1587A0 #7315A0 #A02E15
square
#42A015 #1587A0 #7315A0 #A02E15
split-complementary
#42A015 #2E15A0 #A01587
monochromatic
#153407 #2C6A0E #42A015 #58D61C #7CE748

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42A015#FFFFFF#000000##000000
##42A0151.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)
#9A8929
Tritanopia (blue-blind)
#389A88
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #42a015;
/* rgb */ color: rgb(66, 160, 21);
/* oklch */ color: oklch(62.4% 0.187 138.5);
Tailwind
colors: {
  custom: {
    50: '#82bd62',
    500: '#42a015',
    950: '#000000',
  },
}
SCSS
$custom: #42a015;
$custom-light: #82bd62;
$custom-dark: #000000;
JSON
{
  "hex": "#42a015",
  "rgb": {
    "r": 66,
    "g": 160,
    "b": 21
  },
  "hsl": {
    "h": 100.576,
    "s": 76.796,
    "l": 35.49
  },
  "oklch": {
    "l": 0.62446,
    "c": 0.18692,
    "h": 138.5
  },
  "luminance": 0.26354
}

Semantic roles & 50–950 ramp

primary
#42A015
secondary
#9F49C8
accent
#34F3B6
background
#F8FBF6
surface
#F0F7EB
border
#CBD0C6
text
#0C1206
muted
#7D817A

Preview Lab

Preview with #42A015

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

Preview Lab → · Contrast checker → · Palette generator →

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