#40A862#40A862

#40A862 is a light, vivid green. Relative luminance 0.300; OKLCH L 65.4% C 0.141 H 151.2°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#40A862
RGBrgb(64, 168, 98)
HSLhsl(140, 45%, 45%)
HSVhsv(140, 62%, 66%)
CMYKcmyk(61.9%, 0%, 41.7%, 34.1%)
CIE-LABlab(61.63, -45.80, 27.50)
CIE-LCHlch(61.63, 53.42, 149.02°)
OKLaboklab(65.36% -0.1238 0.0681)
OKLCHoklch(65.36% 0.141 151.2)
XYZxyz(18.3202, 29.9753, 16.3733)
Luminance0.2998 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A862 #A84086
analogous
#52A840 #40A862 #40A896
triadic
#40A862 #6240A8 #A86240
tetradic
#40A862 #4052A8 #A84086 #A89640
square
#40A862 #4052A8 #A84086 #A89640
split-complementary
#40A862 #9640A8 #A84052
monochromatic
#1E4F2E #2F7C48 #40A862 #62C382 #8ED4A5

Accessibility & contrast

On white

3.00
#40A862 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.00
#40A862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40A862
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A862#FFFFFF#000000##000000
##40A8621.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99B5D
Deuteranopia (green-blind)
#9B9167
Tritanopia (blue-blind)
#1DA597
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #40a862;
/* rgb */ color: rgb(64, 168, 98);
/* oklch */ color: oklch(65.4% 0.141 151.2);
Tailwind
colors: {
  custom: {
    50: '#7fc38f',
    500: '#40a862',
    950: '#000000',
  },
}
SCSS
$custom: #40a862;
$custom-light: #7fc38f;
$custom-dark: #000000;
JSON
{
  "hex": "#40a862",
  "rgb": {
    "r": 64,
    "g": 168,
    "b": 98
  },
  "hsl": {
    "h": 139.615,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.65359,
    "c": 0.14132,
    "h": 151.2
  },
  "luminance": 0.29977
}

Semantic roles & 50–950 ramp

primary
#40A862
secondary
#BF85AC
accent
#53AAD5
background
#F8FCF8
surface
#EFF8F0
border
#CAD1CB
text
#0B120C
muted
#7C817D

Preview Lab

Preview with #40A862

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

Preview Lab → · Contrast checker → · Palette generator →

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