#42A338#42A338

#42A338 is a light, vivid green. Relative luminance 0.276; OKLCH L 63.5% C 0.171 H 141.8°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#42A338
RGBrgb(66, 163, 56)
HSLhsl(114, 49%, 43%)
HSVhsv(114, 66%, 64%)
CMYKcmyk(59.5%, 0%, 65.6%, 36.1%)
CIE-LABlab(59.56, -49.28, 45.72)
CIE-LCHlch(59.56, 67.22, 137.15°)
OKLaboklab(63.5% -0.1344 0.1058)
OKLCHoklch(63.5% 0.171 141.8)
XYZxyz(16.0570, 27.6367, 8.2289)
Luminance0.2764 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A338 #9938A3
analogous
#77A338 #42A338 #38A364
triadic
#42A338 #3842A3 #A33842
tetradic
#42A338 #3877A3 #9938A3 #A36438
square
#42A338 #3877A3 #9938A3 #A36438
split-complementary
#42A338 #6438A3 #A33877
monochromatic
#1D4819 #307528 #42A338 #5EC454 #89D482

Accessibility & contrast

On white

3.22
#42A338 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#42A338 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42A338
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42A338#FFFFFF#000000##000000
##42A3381.003.226.536.53
#FFFFFF3.221.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A7942B
Deuteranopia (green-blind)
#9B8C41
Tritanopia (blue-blind)
#339E8D
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #42a338;
/* rgb */ color: rgb(66, 163, 56);
/* oklch */ color: oklch(63.5% 0.171 141.8);
Tailwind
colors: {
  custom: {
    50: '#81bf73',
    500: '#42a338',
    950: '#000000',
  },
}
SCSS
$custom: #42a338;
$custom-light: #81bf73;
$custom-dark: #000000;
JSON
{
  "hex": "#42a338",
  "rgb": {
    "r": 66,
    "g": 163,
    "b": 56
  },
  "hsl": {
    "h": 114.393,
    "s": 48.858,
    "l": 42.941
  },
  "oklch": {
    "l": 0.63496,
    "c": 0.17107,
    "h": 141.8
  },
  "luminance": 0.27638
}

Semantic roles & 50–950 ramp

primary
#42A338
secondary
#B779BD
accent
#4FD8CC
background
#F8FBF7
surface
#EFF7ED
border
#CAD0C8
text
#0B1208
muted
#7C817B

Preview Lab

Preview with #42A338

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

Preview Lab → · Contrast checker → · Palette generator →

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