#42B138#42B138

#42B138 is a light, vivid green. Relative luminance 0.329; OKLCH L 67.2% C 0.188 H 141.9°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#42B138
RGBrgb(66, 177, 56)
HSLhsl(115, 52%, 46%)
HSVhsv(115, 68%, 69%)
CMYKcmyk(62.7%, 0%, 68.4%, 30.6%)
CIE-LABlab(64.07, -54.41, 50.59)
CIE-LCHlch(64.07, 74.30, 137.08°)
OKLaboklab(67.22% -0.1483 0.1161)
OKLCHoklch(67.22% 0.188 141.9)
XYZxyz(18.6817, 32.8863, 9.1038)
Luminance0.3289 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42B138 #A738B1
analogous
#7EB138 #42B138 #38B16A
triadic
#42B138 #3842B1 #B13842
tetradic
#42B138 #387EB1 #A738B1 #B16A38
square
#42B138 #387EB1 #A738B1 #B16A38
split-complementary
#42B138 #6A38B1 #B1387E
monochromatic
#1F541B #318329 #42B138 #64CB5B #90DA8A

Accessibility & contrast

On white

2.77
#42B138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.58
#42B138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42B138
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42B138#FFFFFF#000000##000000
##42B1381.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A127
Deuteranopia (green-blind)
#A89843
Tritanopia (blue-blind)
#2EAC98
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #42b138;
/* rgb */ color: rgb(66, 177, 56);
/* oklch */ color: oklch(67.2% 0.188 141.9);
Tailwind
colors: {
  custom: {
    50: '#84c975',
    500: '#42b138',
    950: '#000000',
  },
}
SCSS
$custom: #42b138;
$custom-light: #84c975;
$custom-dark: #000000;
JSON
{
  "hex": "#42b138",
  "rgb": {
    "r": 66,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 115.041,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.67222,
    "c": 0.18835,
    "h": 141.9
  },
  "luminance": 0.32888
}

Semantic roles & 50–950 ramp

primary
#42B138
secondary
#BE81C4
accent
#4CDBD0
background
#F8FCF7
surface
#F0F8ED
border
#CBD1C8
text
#0C1309
muted
#7D827B

Preview Lab

Preview with #42B138

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

Preview Lab → · Contrast checker → · Palette generator →

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