#42A51F#42A51F

#42A51F is a light, vivid green. Relative luminance 0.282; OKLCH L 63.8% C 0.189 H 139.3°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#42A51F
RGBrgb(66, 165, 31)
HSLhsl(104, 68%, 38%)
HSVhsv(104, 81%, 65%)
CMYKcmyk(60%, 0%, 81.2%, 35.3%)
CIE-LABlab(60.04, -51.97, 55.45)
CIE-LCHlch(60.04, 76.00, 133.14°)
OKLaboklab(63.84% -0.1431 0.1229)
OKLCHoklch(63.84% 0.189 139.3)
XYZxyz(15.9485, 28.1660, 5.8922)
Luminance0.2817 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A51F #821FA5
analogous
#85A51F #42A51F #1FA53F
triadic
#42A51F #1F42A5 #A51F42
tetradic
#42A51F #1F85A5 #821FA5 #A53F1F
square
#42A51F #1F85A5 #821FA5 #A53F1F
split-complementary
#42A51F #3F1FA5 #A51F85
monochromatic
#193E0C #2D7115 #42A51F #57D72A #80E15E

Accessibility & contrast

On white

3.17
#42A51F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#42A51F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42A51F
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42A51F#FFFFFF#000000##000000
##42A51F1.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9600
Deuteranopia (green-blind)
#9E8E2F
Tritanopia (blue-blind)
#369F8D
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #42a51f;
/* rgb */ color: rgb(66, 165, 31);
/* oklch */ color: oklch(63.8% 0.189 139.3);
Tailwind
colors: {
  custom: {
    50: '#83c167',
    500: '#42a51f',
    950: '#000000',
  },
}
SCSS
$custom: #42a51f;
$custom-light: #83c167;
$custom-dark: #000000;
JSON
{
  "hex": "#42a51f",
  "rgb": {
    "r": 66,
    "g": 165,
    "b": 31
  },
  "hsl": {
    "h": 104.328,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.63838,
    "c": 0.18863,
    "h": 139.3
  },
  "luminance": 0.28167
}

Semantic roles & 50–950 ramp

primary
#42A51F
secondary
#A95BC5
accent
#3DEBBE
background
#F8FBF6
surface
#F0F7EB
border
#CBD0C6
text
#0C1207
muted
#7D817A

Preview Lab

Preview with #42A51F

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

Preview Lab → · Contrast checker → · Palette generator →

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