#40B138#40B138

#40B138 is a light, vivid green. Relative luminance 0.328; OKLCH L 67.2% C 0.189 H 142.2°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#40B138
RGBrgb(64, 177, 56)
HSLhsl(116, 52%, 46%)
HSVhsv(116, 68%, 69%)
CMYKcmyk(63.8%, 0%, 68.4%, 30.6%)
CIE-LABlab(64.01, -54.86, 50.52)
CIE-LCHlch(64.01, 74.58, 137.36°)
OKLaboklab(67.16% -0.1494 0.116)
OKLCHoklch(67.16% 0.189 142.2)
XYZxyz(18.5493, 32.8180, 9.0976)
Luminance0.3282 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B138 #A938B1
analogous
#7CB138 #40B138 #38B16C
triadic
#40B138 #3840B1 #B13840
tetradic
#40B138 #387CB1 #A938B1 #B16C38
square
#40B138 #387CB1 #A938B1 #B16C38
split-complementary
#40B138 #6C38B1 #B1387C
monochromatic
#1E541B #2F8329 #40B138 #62CB5B #8FDA8A

Accessibility & contrast

On white

2.78
#40B138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.56
#40B138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B138
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B138#FFFFFF#000000##000000
##40B1381.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A127
Deuteranopia (green-blind)
#A79843
Tritanopia (blue-blind)
#2AAC98
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #40b138;
/* rgb */ color: rgb(64, 177, 56);
/* oklch */ color: oklch(67.2% 0.189 142.2);
Tailwind
colors: {
  custom: {
    50: '#83c975',
    500: '#40b138',
    950: '#000000',
  },
}
SCSS
$custom: #40b138;
$custom-light: #83c975;
$custom-dark: #000000;
JSON
{
  "hex": "#40b138",
  "rgb": {
    "r": 64,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 116.033,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.6716,
    "c": 0.18914,
    "h": 142.2
  },
  "luminance": 0.3282
}

Semantic roles & 50–950 ramp

primary
#40B138
secondary
#C081C4
accent
#4CDBD2
background
#F8FCF7
surface
#F0F8ED
border
#CBD1C8
text
#0C1309
muted
#7D827B

Preview Lab

Preview with #40B138

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

Preview Lab → · Contrast checker → · Palette generator →

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