#42B417#42B417

#42B417 is a light, highly saturated green. Relative luminance 0.339; OKLCH L 67.8% C 0.208 H 139.5°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#42B417
RGBrgb(66, 180, 23)
HSLhsl(104, 77%, 40%)
HSVhsv(104, 87%, 71%)
CMYKcmyk(63.3%, 0%, 87.2%, 29.4%)
CIE-LABlab(64.85, -57.58, 61.80)
CIE-LCHlch(64.85, 84.47, 132.97°)
OKLaboklab(67.81% -0.1585 0.1352)
OKLCHoklch(67.81% 0.208 139.5)
XYZxyz(18.7218, 33.8608, 6.3596)
Luminance0.3386 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42B417 #8917B4
analogous
#91B417 #42B417 #17B43B
triadic
#42B417 #1742B4 #B41742
tetradic
#42B417 #1791B4 #8917B4 #B43B17
square
#42B417 #1791B4 #8917B4 #B43B17
split-complementary
#42B417 #3B17B4 #B41791
monochromatic
#1A4709 #2E7E10 #42B417 #59E325 #82EA5B

Accessibility & contrast

On white

2.70
#42B417 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#42B417 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42B417
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42B417#FFFFFF#000000##000000
##42B4171.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#AC9A2E
Tritanopia (blue-blind)
#32AE99
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #42b417;
/* rgb */ color: rgb(66, 180, 23);
/* oklch */ color: oklch(67.8% 0.208 139.5);
Tailwind
colors: {
  custom: {
    50: '#86cb66',
    500: '#42b417',
    950: '#000000',
  },
}
SCSS
$custom: #42b417;
$custom-light: #86cb66;
$custom-dark: #000000;
JSON
{
  "hex": "#42b417",
  "rgb": {
    "r": 66,
    "g": 180,
    "b": 23
  },
  "hsl": {
    "h": 103.567,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.67812,
    "c": 0.20829,
    "h": 139.5
  },
  "luminance": 0.33863
}

Semantic roles & 50–950 ramp

primary
#42B417
secondary
#AE59CE
accent
#34F4BF
background
#F8FCF6
surface
#F0F9EB
border
#CBD2C6
text
#0C1307
muted
#7D827A

Preview Lab

Preview with #42B417

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

Preview Lab → · Contrast checker → · Palette generator →

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