#42AE1F#42AE1F

#42AE1F is a light, vivid green. Relative luminance 0.315; OKLCH L 66.2% C 0.199 H 139.7°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#42AE1F
RGBrgb(66, 174, 31)
HSLhsl(105, 70%, 40%)
HSVhsv(105, 82%, 68%)
CMYKcmyk(62.1%, 0%, 82.2%, 31.8%)
CIE-LABlab(62.95, -55.16, 58.15)
CIE-LCHlch(62.95, 80.15, 133.49°)
OKLaboklab(66.25% -0.1516 0.1285)
OKLCHoklch(66.25% 0.199 139.7)
XYZxyz(17.6294, 31.5276, 6.4525)
Luminance0.3153 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42AE1F #8B1FAE
analogous
#89AE1F #42AE1F #1FAE44
triadic
#42AE1F #1F42AE #AE1F42
tetradic
#42AE1F #1F89AE #8B1FAE #AE441F
square
#42AE1F #1F89AE #8B1FAE #AE441F
split-complementary
#42AE1F #441FAE #AE1F89
monochromatic
#1B460C #2E7A16 #42AE1F #5ADA30 #83E364

Accessibility & contrast

On white

2.87
#42AE1F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#42AE1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42AE1F
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42AE1F#FFFFFF#000000##000000
##42AE1F1.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E00
Deuteranopia (green-blind)
#A69531
Tritanopia (blue-blind)
#33A894
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #42ae1f;
/* rgb */ color: rgb(66, 174, 31);
/* oklch */ color: oklch(66.2% 0.199 139.7);
Tailwind
colors: {
  custom: {
    50: '#84c768',
    500: '#42ae1f',
    950: '#000000',
  },
}
SCSS
$custom: #42ae1f;
$custom-light: #84c768;
$custom-dark: #000000;
JSON
{
  "hex": "#42ae1f",
  "rgb": {
    "r": 66,
    "g": 174,
    "b": 31
  },
  "hsl": {
    "h": 105.315,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.66247,
    "c": 0.19879,
    "h": 139.7
  },
  "luminance": 0.31529
}

Semantic roles & 50–950 ramp

primary
#42AE1F
secondary
#AF60C8
accent
#3BEDC1
background
#F8FCF6
surface
#F0F8EB
border
#CBD1C6
text
#0C1307
muted
#7D827A

Preview Lab

Preview with #42AE1F

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

Preview Lab → · Contrast checker → · Palette generator →

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