#42B231#42B231

#42B231 is a light, vivid green. Relative luminance 0.332; OKLCH L 67.4% C 0.194 H 141.2°. Best body text is #000000 at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#42B231
RGBrgb(66, 178, 49)
HSLhsl(112, 57%, 45%)
HSVhsv(112, 72%, 70%)
CMYKcmyk(62.9%, 0%, 72.5%, 30.2%)
CIE-LABlab(64.34, -55.37, 53.61)
CIE-LCHlch(64.34, 77.07, 135.93°)
OKLaboklab(67.43% -0.1513 0.1216)
OKLCHoklch(67.43% 0.194 141.2)
XYZxyz(18.7206, 33.2190, 8.3305)
Luminance0.3322 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42B231 #A131B2
analogous
#83B231 #42B231 #31B261
triadic
#42B231 #3142B2 #B23142
tetradic
#42B231 #3183B2 #A131B2 #B26131
square
#42B231 #3183B2 #A131B2 #B26131
split-complementary
#42B231 #6131B2 #B23183
monochromatic
#1E5217 #308224 #42B231 #62CF51 #8DDC81

Accessibility & contrast

On white

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

On black

7.64
#42B231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42B231
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42B231#FFFFFF#000000##000000
##42B2311.002.757.647.64
#FFFFFF2.751.0021.0021.00
#0000007.6421.001.001.00
##0000007.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A21B
Deuteranopia (green-blind)
#A9983E
Tritanopia (blue-blind)
#2FAC99
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #42b231;
/* rgb */ color: rgb(66, 178, 49);
/* oklch */ color: oklch(67.4% 0.194 141.2);
Tailwind
colors: {
  custom: {
    50: '#84ca71',
    500: '#42b231',
    950: '#000000',
  },
}
SCSS
$custom: #42b231;
$custom-light: #84ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#42b231",
  "rgb": {
    "r": 66,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 112.093,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.67428,
    "c": 0.19407,
    "h": 141.2
  },
  "luminance": 0.33221
}

Semantic roles & 50–950 ramp

primary
#42B231
secondary
#BB79C5
accent
#48E0CC
background
#F8FCF7
surface
#F0F8ED
border
#CBD1C8
text
#0C1308
muted
#7D827B

Preview Lab

Preview with #42B231

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

Preview Lab → · Contrast checker → · Palette generator →

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