#40C242#40C242

#40C242 is a light, highly saturated green. Relative luminance 0.401; OKLCH L 71.7% C 0.202 H 143.3°. Best body text is #000000 at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#40C242
RGBrgb(64, 194, 66)
HSLhsl(121, 52%, 51%)
HSVhsv(121, 67%, 76%)
CMYKcmyk(67%, 0%, 66%, 23.9%)
CIE-LABlab(69.52, -59.81, 52.34)
CIE-LCHlch(69.52, 79.48, 138.81°)
OKLaboklab(71.74% -0.1623 0.1209)
OKLCHoklch(71.74% 0.202 143.3)
XYZxyz(22.3882, 40.0646, 11.7066)
Luminance0.4007 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C242 #C240C0
analogous
#7FC240 #40C242 #40C283
triadic
#40C242 #4240C2 #C24240
tetradic
#40C242 #407FC2 #C240C0 #C28340
square
#40C242 #407FC2 #C240C0 #C28340
split-complementary
#40C242 #8340C2 #C2407F
monochromatic
#216722 #309531 #40C242 #6ED170 #9DE09E

Accessibility & contrast

On white

2.33
#40C242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.01
#40C242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C242
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C242#FFFFFF#000000##000000
##40C2421.002.339.019.01
#FFFFFF2.331.0021.0021.00
#0000009.0121.001.001.00
##0000009.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B031
Deuteranopia (green-blind)
#B7A64E
Tritanopia (blue-blind)
#1EBDA8
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #40c242;
/* rgb */ color: rgb(64, 194, 66);
/* oklch */ color: oklch(71.7% 0.202 143.3);
Tailwind
colors: {
  custom: {
    50: '#86d67c',
    500: '#40c242',
    950: '#000000',
  },
}
SCSS
$custom: #40c242;
$custom-light: #86d67c;
$custom-dark: #000000;
JSON
{
  "hex": "#40c242",
  "rgb": {
    "r": 64,
    "g": 194,
    "b": 66
  },
  "hsl": {
    "h": 120.923,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.7174,
    "c": 0.20241,
    "h": 143.3
  },
  "luminance": 0.40067
}

Semantic roles & 50–950 ramp

primary
#40C242
secondary
#CC92CB
accent
#4DD9DB
background
#F8FDF7
surface
#F0FAEE
border
#CBD3C9
text
#0C140A
muted
#7D837C

Preview Lab

Preview with #40C242

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

Preview Lab → · Contrast checker → · Palette generator →

#40C242 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva