#42A227#42A227

#42A227 is a light, vivid green. Relative luminance 0.271; OKLCH L 63.1% C 0.181 H 139.8°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#42A227
RGBrgb(66, 162, 39)
HSLhsl(107, 61%, 39%)
HSVhsv(107, 76%, 64%)
CMYKcmyk(59.3%, 0%, 75.9%, 36.5%)
CIE-LABlab(59.11, -50.38, 51.98)
CIE-LCHlch(59.11, 72.38, 134.10°)
OKLaboklab(63.08% -0.1384 0.1168)
OKLCHoklch(63.08% 0.181 139.8)
XYZxyz(15.5326, 27.1440, 6.3398)
Luminance0.2715 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A227 #8727A2
analogous
#80A227 #42A227 #27A249
triadic
#42A227 #2742A2 #A22742
tetradic
#42A227 #2780A2 #8727A2 #A24927
square
#42A227 #2780A2 #8727A2 #A24927
split-complementary
#42A227 #4927A2 #A22780
monochromatic
#1A3F0F #2E711B #42A227 #59CF37 #82DB69

Accessibility & contrast

On white

3.27
#42A227 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#42A227 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42A227
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42A227#FFFFFF#000000##000000
##42A2271.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A7930C
Deuteranopia (green-blind)
#9B8B34
Tritanopia (blue-blind)
#369D8B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #42a227;
/* rgb */ color: rgb(66, 162, 39);
/* oklch */ color: oklch(63.1% 0.181 139.8);
Tailwind
colors: {
  custom: {
    50: '#82be6a',
    500: '#42a227',
    950: '#000000',
  },
}
SCSS
$custom: #42a227;
$custom-light: #82be6a;
$custom-dark: #000000;
JSON
{
  "hex": "#42a227",
  "rgb": {
    "r": 66,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 106.829,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.63083,
    "c": 0.18106,
    "h": 139.8
  },
  "luminance": 0.27145
}

Semantic roles & 50–950 ramp

primary
#42A227
secondary
#AC64C1
accent
#43E4C1
background
#F8FBF6
surface
#F0F7EB
border
#CBD0C6
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #42A227

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

Preview Lab → · Contrast checker → · Palette generator →

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