#40A157#40A157

#40A157 is a light, vivid green. Relative luminance 0.273; OKLCH L 63.3% C 0.142 H 148.6°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#40A157
RGBrgb(64, 161, 87)
HSLhsl(134, 43%, 44%)
HSVhsv(134, 60%, 63%)
CMYKcmyk(60.2%, 0%, 46%, 36.9%)
CIE-LABlab(59.22, -44.86, 30.20)
CIE-LCHlch(59.22, 54.08, 146.05°)
OKLaboklab(63.32% -0.1213 0.074)
OKLCHoklch(63.32% 0.142 148.6)
XYZxyz(16.5784, 27.2663, 13.4042)
Luminance0.2727 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A157 #A1408A
analogous
#5AA140 #40A157 #40A188
triadic
#40A157 #5740A1 #A15740
tetradic
#40A157 #405AA1 #A1408A #A18840
square
#40A157 #405AA1 #A1408A #A18840
split-complementary
#40A157 #8840A1 #A1405A
monochromatic
#1D4928 #2F753F #40A157 #5FBF76 #8BD19B

Accessibility & contrast

On white

3.25
#40A157 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#40A157 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A157
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A157#FFFFFF#000000##000000
##40A1571.003.256.456.45
#FFFFFF3.251.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A29451
Deuteranopia (green-blind)
#968B5C
Tritanopia (blue-blind)
#279E8F
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #40a157;
/* rgb */ color: rgb(64, 161, 87);
/* oklch */ color: oklch(63.3% 0.142 148.6);
Tailwind
colors: {
  custom: {
    50: '#7ebe87',
    500: '#40a157',
    950: '#000000',
  },
}
SCSS
$custom: #40a157;
$custom-light: #7ebe87;
$custom-dark: #000000;
JSON
{
  "hex": "#40a157",
  "rgb": {
    "r": 64,
    "g": 161,
    "b": 87
  },
  "hsl": {
    "h": 134.227,
    "s": 43.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.63319,
    "c": 0.14208,
    "h": 148.6
  },
  "luminance": 0.27268
}

Semantic roles & 50–950 ramp

primary
#40A157
secondary
#BC81AE
accent
#55B5D3
background
#F8FBF8
surface
#EFF7EF
border
#CAD0CA
text
#0B120B
muted
#7C817C

Preview Lab

Preview with #40A157

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

Preview Lab → · Contrast checker → · Palette generator →

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