#42B227#42B227

#42B227 is a light, vivid green. Relative luminance 0.331; OKLCH L 67.4% C 0.200 H 140.4°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#42B227
RGBrgb(66, 178, 39)
HSLhsl(108, 64%, 43%)
HSVhsv(108, 78%, 70%)
CMYKcmyk(62.9%, 0%, 78.1%, 30.2%)
CIE-LABlab(64.28, -56.09, 57.01)
CIE-LCHlch(64.28, 79.98, 134.53°)
OKLaboklab(67.36% -0.1538 0.1273)
OKLCHoklch(67.36% 0.2 140.4)
XYZxyz(18.5325, 33.1437, 7.3398)
Luminance0.3315 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42B227 #9727B2
analogous
#88B227 #42B227 #27B251
triadic
#42B227 #2742B2 #B22742
tetradic
#42B227 #2788B2 #9727B2 #B25127
square
#42B227 #2788B2 #9727B2 #B25127
split-complementary
#42B227 #5127B2 #B22788
monochromatic
#1D4E11 #2F801C #42B227 #5ED541 #88E073

Accessibility & contrast

On white

2.75
#42B227 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#42B227 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42B227
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42B227#FFFFFF#000000##000000
##42B2271.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A100
Deuteranopia (green-blind)
#A99837
Tritanopia (blue-blind)
#31AC98
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #42b227;
/* rgb */ color: rgb(66, 178, 39);
/* oklch */ color: oklch(67.4% 0.200 140.4);
Tailwind
colors: {
  custom: {
    50: '#85ca6c',
    500: '#42b227',
    950: '#000000',
  },
}
SCSS
$custom: #42b227;
$custom-light: #85ca6c;
$custom-dark: #000000;
JSON
{
  "hex": "#42b227",
  "rgb": {
    "r": 66,
    "g": 178,
    "b": 39
  },
  "hsl": {
    "h": 108.345,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.67358,
    "c": 0.19961,
    "h": 140.4
  },
  "luminance": 0.33146
}

Semantic roles & 50–950 ramp

primary
#42B227
secondary
#B66DC8
accent
#41E7C7
background
#F8FCF6
surface
#F0F8EC
border
#CBD1C7
text
#0C1307
muted
#7D827A

Preview Lab

Preview with #42B227

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

Preview Lab → · Contrast checker → · Palette generator →

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