#42A71F#42A71F

#42A71F is a light, vivid green. Relative luminance 0.289; OKLCH L 64.4% C 0.191 H 139.4°. Best body text is #000000 at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#42A71F
RGBrgb(66, 167, 31)
HSLhsl(105, 69%, 39%)
HSVhsv(105, 81%, 65%)
CMYKcmyk(60.5%, 0%, 81.4%, 34.5%)
CIE-LABlab(60.69, -52.69, 56.06)
CIE-LCHlch(60.69, 76.93, 133.23°)
OKLaboklab(64.38% -0.145 0.1242)
OKLCHoklch(64.38% 0.191 139.4)
XYZxyz(16.3121, 28.8931, 6.0134)
Luminance0.2889 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A71F #841FA7
analogous
#86A71F #42A71F #1FA740
triadic
#42A71F #1F42A7 #A71F42
tetradic
#42A71F #1F86A7 #841FA7 #A7401F
square
#42A71F #1F86A7 #841FA7 #A7401F
split-complementary
#42A71F #401FA7 #A71F86
monochromatic
#19400C #2E7315 #42A71F #58D82B #81E15F

Accessibility & contrast

On white

3.10
#42A71F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.78
#42A71F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42A71F
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42A71F#FFFFFF#000000##000000
##42A71F1.003.106.786.78
#FFFFFF3.101.0021.0021.00
#0000006.7821.001.001.00
##0000006.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9700
Deuteranopia (green-blind)
#A08F30
Tritanopia (blue-blind)
#36A18E
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #42a71f;
/* rgb */ color: rgb(66, 167, 31);
/* oklch */ color: oklch(64.4% 0.191 139.4);
Tailwind
colors: {
  custom: {
    50: '#83c267',
    500: '#42a71f',
    950: '#000000',
  },
}
SCSS
$custom: #42a71f;
$custom-light: #83c267;
$custom-dark: #000000;
JSON
{
  "hex": "#42a71f",
  "rgb": {
    "r": 66,
    "g": 167,
    "b": 31
  },
  "hsl": {
    "h": 104.559,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.64375,
    "c": 0.1909,
    "h": 139.4
  },
  "luminance": 0.28895
}

Semantic roles & 50–950 ramp

primary
#42A71F
secondary
#AB5CC6
accent
#3CECBE
background
#F8FCF6
surface
#F0F8EB
border
#CBD1C6
text
#0C1207
muted
#7D817A

Preview Lab

Preview with #42A71F

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

Preview Lab → · Contrast checker → · Palette generator →

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