#42B271#42B271

#42B271 is a light, vivid green. Relative luminance 0.342; OKLCH L 68.3% C 0.140 H 154.5°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#42B271
RGBrgb(66, 178, 113)
HSLhsl(145, 46%, 48%)
HSVhsv(145, 63%, 70%)
CMYKcmyk(62.9%, 0%, 36.5%, 30.2%)
CIE-LABlab(65.11, -46.65, 24.10)
CIE-LCHlch(65.11, 52.51, 152.68°)
OKLaboklab(68.32% -0.1264 0.0604)
OKLCHoklch(68.32% 0.14 154.5)
XYZxyz(21.1460, 34.1892, 21.1044)
Luminance0.3419 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42B271 #B24283
analogous
#4BB242 #42B271 #42B2A9
triadic
#42B271 #7142B2 #B27142
tetradic
#42B271 #424BB2 #B24283 #B2A942
square
#42B271 #424BB2 #B24283 #B2A942
split-complementary
#42B271 #A942B2 #B2424B
monochromatic
#215938 #318555 #42B271 #6AC891 #96D8B2

Accessibility & contrast

On white

2.68
#42B271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#42B271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42B271
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42B271#FFFFFF#000000##000000
##42B2711.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A46D
Deuteranopia (green-blind)
#A39A75
Tritanopia (blue-blind)
#0FB0A1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #42b271;
/* rgb */ color: rgb(66, 178, 113);
/* oklch */ color: oklch(68.3% 0.140 154.5);
Tailwind
colors: {
  custom: {
    50: '#82ca9a',
    500: '#42b271',
    950: '#000000',
  },
}
SCSS
$custom: #42b271;
$custom-light: #82ca9a;
$custom-dark: #000000;
JSON
{
  "hex": "#42b271",
  "rgb": {
    "r": 66,
    "g": 178,
    "b": 113
  },
  "hsl": {
    "h": 145.179,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.68318,
    "c": 0.14011,
    "h": 154.5
  },
  "luminance": 0.34191
}

Semantic roles & 50–950 ramp

primary
#42B271
secondary
#C48CAC
accent
#529ED6
background
#F8FCF9
surface
#F0F8F2
border
#CBD1CC
text
#0B130E
muted
#7C827E

Preview Lab

Preview with #42B271

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

Preview Lab → · Contrast checker → · Palette generator →

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