#42AB2D#42AB2D

#42AB2D is a light, vivid green. Relative luminance 0.305; OKLCH L 65.5% C 0.188 H 140.7°. Best body text is #000000 at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#42AB2D
RGBrgb(66, 171, 45)
HSLhsl(110, 58%, 42%)
HSVhsv(110, 74%, 67%)
CMYKcmyk(61.4%, 0%, 73.7%, 32.9%)
CIE-LABlab(62.06, -53.20, 52.77)
CIE-LCHlch(62.06, 74.93, 135.23°)
OKLaboklab(65.54% -0.1456 0.1193)
OKLCHoklch(65.54% 0.188 140.7)
XYZxyz(17.2825, 30.4719, 7.4530)
Luminance0.3047 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42AB2D #962DAB
analogous
#81AB2D #42AB2D #2DAB57
triadic
#42AB2D #2D42AB #AB2D42
tetradic
#42AB2D #2D81AB #962DAB #AB572D
square
#42AB2D #2D81AB #962DAB #AB572D
split-complementary
#42AB2D #572DAB #AB2D81
monochromatic
#1D4A14 #2F7B20 #42AB2D #5DCE47 #88DB77

Accessibility & contrast

On white

2.96
#42AB2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.09
#42AB2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42AB2D
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42AB2D#FFFFFF#000000##000000
##42AB2D1.002.967.097.09
#FFFFFF2.961.0021.0021.00
#0000007.0921.001.001.00
##0000007.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09B16
Deuteranopia (green-blind)
#A3933A
Tritanopia (blue-blind)
#32A593
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #42ab2d;
/* rgb */ color: rgb(66, 171, 45);
/* oklch */ color: oklch(65.5% 0.188 140.7);
Tailwind
colors: {
  custom: {
    50: '#83c56e',
    500: '#42ab2d',
    950: '#000000',
  },
}
SCSS
$custom: #42ab2d;
$custom-light: #83c56e;
$custom-dark: #000000;
JSON
{
  "hex": "#42ab2d",
  "rgb": {
    "r": 66,
    "g": 171,
    "b": 45
  },
  "hsl": {
    "h": 110,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.65535,
    "c": 0.18825,
    "h": 140.7
  },
  "luminance": 0.30474
}

Semantic roles & 50–950 ramp

primary
#42AB2D
secondary
#B571C3
accent
#46E2C8
background
#F8FCF6
surface
#F0F8EC
border
#CBD1C7
text
#0C1308
muted
#7D827B

Preview Lab

Preview with #42AB2D

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

Preview Lab → · Contrast checker → · Palette generator →

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