#42A231#42A231

#42A231 is a light, vivid green. Relative luminance 0.272; OKLCH L 63.2% C 0.175 H 140.9°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#42A231
RGBrgb(66, 162, 49)
HSLhsl(111, 54%, 41%)
HSVhsv(111, 70%, 64%)
CMYKcmyk(59.3%, 0%, 69.8%, 36.5%)
CIE-LABlab(59.18, -49.58, 48.25)
CIE-LCHlch(59.18, 69.18, 135.78°)
OKLaboklab(63.16% -0.1356 0.1103)
OKLCHoklch(63.16% 0.175 140.9)
XYZxyz(15.7207, 27.2193, 7.3305)
Luminance0.2722 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A231 #9131A2
analogous
#7BA231 #42A231 #31A258
triadic
#42A231 #3142A2 #A23142
tetradic
#42A231 #317BA2 #9131A2 #A25831
square
#42A231 #317BA2 #9131A2 #A25831
split-complementary
#42A231 #5831A2 #A2317B
monochromatic
#1C4415 #2F7323 #42A231 #5CC848 #86D677

Accessibility & contrast

On white

3.26
#42A231 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#42A231 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42A231
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42A231#FFFFFF#000000##000000
##42A2311.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69320
Deuteranopia (green-blind)
#9A8B3C
Tritanopia (blue-blind)
#359D8B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #42a231;
/* rgb */ color: rgb(66, 162, 49);
/* oklch */ color: oklch(63.2% 0.175 140.9);
Tailwind
colors: {
  custom: {
    50: '#81be6f',
    500: '#42a231',
    950: '#000000',
  },
}
SCSS
$custom: #42a231;
$custom-light: #81be6f;
$custom-dark: #000000;
JSON
{
  "hex": "#42a231",
  "rgb": {
    "r": 66,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 110.973,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.63162,
    "c": 0.17484,
    "h": 140.9
  },
  "luminance": 0.27221
}

Semantic roles & 50–950 ramp

primary
#42A231
secondary
#B371BE
accent
#4BDDC7
background
#F8FBF6
surface
#F0F7EC
border
#CBD0C7
text
#0B1208
muted
#7C817B

Preview Lab

Preview with #42A231

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

Preview Lab → · Contrast checker → · Palette generator →

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