#40A138#40A138

#40A138 is a light, vivid green. Relative luminance 0.269; OKLCH L 62.9% C 0.169 H 142.1°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#40A138
RGBrgb(64, 161, 56)
HSLhsl(115, 48%, 43%)
HSVhsv(115, 65%, 63%)
CMYKcmyk(60.2%, 0%, 65.2%, 36.9%)
CIE-LABlab(58.85, -49.03, 44.92)
CIE-LCHlch(58.85, 66.49, 137.51°)
OKLaboklab(62.89% -0.1336 0.1041)
OKLCHoklch(62.89% 0.169 142.1)
XYZxyz(15.5722, 26.8638, 8.1052)
Luminance0.2686 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A138 #9938A1
analogous
#74A138 #40A138 #38A165
triadic
#40A138 #3840A1 #A13840
tetradic
#40A138 #3874A1 #9938A1 #A16538
square
#40A138 #3874A1 #9938A1 #A16538
split-complementary
#40A138 #6538A1 #A13874
monochromatic
#1C4618 #2E7428 #40A138 #5CC353 #87D380

Accessibility & contrast

On white

3.30
#40A138 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#40A138 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A138
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A138#FFFFFF#000000##000000
##40A1381.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A5932B
Deuteranopia (green-blind)
#998A41
Tritanopia (blue-blind)
#309C8B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #40a138;
/* rgb */ color: rgb(64, 161, 56);
/* oklch */ color: oklch(62.9% 0.169 142.1);
Tailwind
colors: {
  custom: {
    50: '#80be73',
    500: '#40a138',
    950: '#000000',
  },
}
SCSS
$custom: #40a138;
$custom-light: #80be73;
$custom-dark: #000000;
JSON
{
  "hex": "#40a138",
  "rgb": {
    "r": 64,
    "g": 161,
    "b": 56
  },
  "hsl": {
    "h": 115.429,
    "s": 48.387,
    "l": 42.549
  },
  "oklch": {
    "l": 0.62892,
    "c": 0.1694,
    "h": 142.1
  },
  "luminance": 0.26865
}

Semantic roles & 50–950 ramp

primary
#40A138
secondary
#B778BC
accent
#50D8CE
background
#F8FBF7
surface
#EFF7ED
border
#CAD0C8
text
#0B1208
muted
#7C817B

Preview Lab

Preview with #40A138

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

Preview Lab → · Contrast checker → · Palette generator →

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