#40B162#40B162

#40B162 is a light, vivid green. Relative luminance 0.334; OKLCH L 67.7% C 0.154 H 150.1°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#40B162
RGBrgb(64, 177, 98)
HSLhsl(138, 47%, 47%)
HSVhsv(138, 64%, 69%)
CMYKcmyk(63.8%, 0%, 44.6%, 30.6%)
CIE-LABlab(64.49, -49.37, 31.20)
CIE-LCHlch(64.49, 58.40, 147.71°)
OKLaboklab(67.71% -0.1333 0.0767)
OKLCHoklch(67.71% 0.154 150.1)
XYZxyz(20.0396, 33.4141, 16.9464)
Luminance0.3342 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B162 #B1408F
analogous
#57B140 #40B162 #40B19B
triadic
#40B162 #6240B1 #B16240
tetradic
#40B162 #4057B1 #B1408F #B19B40
square
#40B162 #4057B1 #B1408F #B19B40
split-complementary
#40B162 #9B40B1 #B14057
monochromatic
#1F5730 #308449 #40B162 #66C884 #93D8A8

Accessibility & contrast

On white

2.73
#40B162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#40B162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B162
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B162#FFFFFF#000000##000000
##40B1621.002.737.687.68
#FFFFFF2.731.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A25C
Deuteranopia (green-blind)
#A49867
Tritanopia (blue-blind)
#17AE9E
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #40b162;
/* rgb */ color: rgb(64, 177, 98);
/* oklch */ color: oklch(67.7% 0.154 150.1);
Tailwind
colors: {
  custom: {
    50: '#81c990',
    500: '#40b162',
    950: '#000000',
  },
}
SCSS
$custom: #40b162;
$custom-light: #81c990;
$custom-dark: #000000;
JSON
{
  "hex": "#40b162",
  "rgb": {
    "r": 64,
    "g": 177,
    "b": 98
  },
  "hsl": {
    "h": 138.053,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.67713,
    "c": 0.15379,
    "h": 150.1
  },
  "luminance": 0.33416
}

Semantic roles & 50–950 ramp

primary
#40B162
secondary
#C389B2
accent
#51AED7
background
#F8FCF8
surface
#F0F8F0
border
#CBD1CB
text
#0B130C
muted
#7C827D

Preview Lab

Preview with #40B162

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

Preview Lab → · Contrast checker → · Palette generator →

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