#42A81F#42A81F

#42A81F is a light, vivid green. Relative luminance 0.293; OKLCH L 64.6% C 0.192 H 139.5°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#42A81F
RGBrgb(66, 168, 31)
HSLhsl(105, 69%, 39%)
HSVhsv(105, 82%, 66%)
CMYKcmyk(60.7%, 0%, 81.5%, 34.1%)
CIE-LABlab(61.01, -53.04, 56.36)
CIE-LCHlch(61.01, 77.39, 133.27°)
OKLaboklab(64.64% -0.146 0.1248)
OKLCHoklch(64.64% 0.192 139.5)
XYZxyz(16.4960, 29.2609, 6.0747)
Luminance0.2926 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A81F #851FA8
analogous
#87A81F #42A81F #1FA841
triadic
#42A81F #1F42A8 #A81F42
tetradic
#42A81F #1F87A8 #851FA8 #A8411F
square
#42A81F #1F87A8 #851FA8 #A8411F
split-complementary
#42A81F #411FA8 #A81F87
monochromatic
#19410C #2E7415 #42A81F #58D82C #81E260

Accessibility & contrast

On white

3.06
#42A81F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.85
#42A81F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42A81F
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42A81F#FFFFFF#000000##000000
##42A81F1.003.066.856.85
#FFFFFF3.061.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9800
Deuteranopia (green-blind)
#A09030
Tritanopia (blue-blind)
#35A28F
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #42a81f;
/* rgb */ color: rgb(66, 168, 31);
/* oklch */ color: oklch(64.6% 0.192 139.5);
Tailwind
colors: {
  custom: {
    50: '#83c367',
    500: '#42a81f',
    950: '#000000',
  },
}
SCSS
$custom: #42a81f;
$custom-light: #83c367;
$custom-dark: #000000;
JSON
{
  "hex": "#42a81f",
  "rgb": {
    "r": 66,
    "g": 168,
    "b": 31
  },
  "hsl": {
    "h": 104.672,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.64643,
    "c": 0.19204,
    "h": 139.5
  },
  "luminance": 0.29262
}

Semantic roles & 50–950 ramp

primary
#42A81F
secondary
#AB5DC6
accent
#3CECBF
background
#F8FCF6
surface
#F0F8EB
border
#CBD1C6
text
#0C1207
muted
#7D817A

Preview Lab

Preview with #42A81F

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

Preview Lab → · Contrast checker → · Palette generator →

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