#40A158#40A158

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

Color values

HEX#40A158
RGBrgb(64, 161, 88)
HSLhsl(135, 43%, 44%)
HSVhsv(135, 60%, 63%)
CMYKcmyk(60.2%, 0%, 45.3%, 36.9%)
CIE-LABlab(59.24, -44.69, 29.69)
CIE-LCHlch(59.24, 53.66, 146.40°)
OKLaboklab(63.34% -0.1208 0.0729)
OKLCHoklch(63.34% 0.141 148.9)
XYZxyz(16.6195, 27.2827, 13.6209)
Luminance0.2728 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A158 #A14089
analogous
#59A140 #40A158 #40A189
triadic
#40A158 #5840A1 #A15840
tetradic
#40A158 #4059A1 #A14089 #A18940
square
#40A158 #4059A1 #A14089 #A18940
split-complementary
#40A158 #8940A1 #A14059
monochromatic
#1D4928 #2F7540 #40A158 #5FBF77 #8BD19C

Accessibility & contrast

On white

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

On black

6.46
#40A158 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A158
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A158#FFFFFF#000000##000000
##40A1581.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A29452
Deuteranopia (green-blind)
#968B5D
Tritanopia (blue-blind)
#269E8F
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #40a158;
/* rgb */ color: rgb(64, 161, 88);
/* oklch */ color: oklch(63.3% 0.141 148.9);
Tailwind
colors: {
  custom: {
    50: '#7ebe88',
    500: '#40a158',
    950: '#000000',
  },
}
SCSS
$custom: #40a158;
$custom-light: #7ebe88;
$custom-dark: #000000;
JSON
{
  "hex": "#40a158",
  "rgb": {
    "r": 64,
    "g": 161,
    "b": 88
  },
  "hsl": {
    "h": 134.845,
    "s": 43.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.63336,
    "c": 0.14111,
    "h": 148.9
  },
  "luminance": 0.27284
}

Semantic roles & 50–950 ramp

primary
#40A158
secondary
#BC81AD
accent
#55B4D3
background
#F8FBF8
surface
#EFF7F0
border
#CAD0CB
text
#0B120B
muted
#7C817C

Preview Lab

Preview with #40A158

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

Preview Lab → · Contrast checker → · Palette generator →

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