#42AD1F#42AD1F

#42AD1F is a light, vivid green. Relative luminance 0.311; OKLCH L 66.0% C 0.198 H 139.7°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#42AD1F
RGBrgb(66, 173, 31)
HSLhsl(105, 70%, 40%)
HSVhsv(105, 82%, 68%)
CMYKcmyk(61.8%, 0%, 82.1%, 32.2%)
CIE-LABlab(62.63, -54.81, 57.85)
CIE-LCHlch(62.63, 79.69, 133.45°)
OKLaboklab(65.98% -0.1507 0.1279)
OKLCHoklch(65.98% 0.198 139.7)
XYZxyz(17.4369, 31.1427, 6.3883)
Luminance0.3114 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42AD1F #8A1FAD
analogous
#89AD1F #42AD1F #1FAD43
triadic
#42AD1F #1F42AD #AD1F42
tetradic
#42AD1F #1F89AD #8A1FAD #AD431F
square
#42AD1F #1F89AD #8A1FAD #AD431F
split-complementary
#42AD1F #431FAD #AD1F89
monochromatic
#1A450C #2E7916 #42AD1F #59DA2F #83E363

Accessibility & contrast

On white

2.91
#42AD1F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#42AD1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42AD1F
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42AD1F#FFFFFF#000000##000000
##42AD1F1.002.917.237.23
#FFFFFF2.911.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D00
Deuteranopia (green-blind)
#A59431
Tritanopia (blue-blind)
#34A793
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #42ad1f;
/* rgb */ color: rgb(66, 173, 31);
/* oklch */ color: oklch(66.0% 0.198 139.7);
Tailwind
colors: {
  custom: {
    50: '#84c668',
    500: '#42ad1f',
    950: '#000000',
  },
}
SCSS
$custom: #42ad1f;
$custom-light: #84c668;
$custom-dark: #000000;
JSON
{
  "hex": "#42ad1f",
  "rgb": {
    "r": 66,
    "g": 173,
    "b": 31
  },
  "hsl": {
    "h": 105.211,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.6598,
    "c": 0.19767,
    "h": 139.7
  },
  "luminance": 0.31144
}

Semantic roles & 50–950 ramp

primary
#42AD1F
secondary
#AE60C8
accent
#3BECC1
background
#F8FCF6
surface
#F0F8EB
border
#CBD1C6
text
#0C1307
muted
#7D827A

Preview Lab

Preview with #42AD1F

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

Preview Lab → · Contrast checker → · Palette generator →

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