#40B838#40B838

#40B838 is a light, vivid green. Relative luminance 0.357; OKLCH L 69.0% C 0.197 H 142.2°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#40B838
RGBrgb(64, 184, 56)
HSLhsl(116, 53%, 47%)
HSVhsv(116, 70%, 72%)
CMYKcmyk(65.2%, 0%, 69.6%, 27.8%)
CIE-LABlab(66.26, -57.31, 52.90)
CIE-LCHlch(66.26, 77.99, 137.30°)
OKLaboklab(69.02% -0.156 0.121)
OKLCHoklch(69.02% 0.197 142.2)
XYZxyz(19.9675, 35.6545, 9.5703)
Luminance0.3566 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B838 #B038B8
analogous
#80B838 #40B838 #38B870
triadic
#40B838 #3840B8 #B83840
tetradic
#40B838 #3880B8 #B038B8 #B87038
square
#40B838 #3880B8 #B038B8 #B87038
split-complementary
#40B838 #7038B8 #B83880
monochromatic
#1F5A1B #30892A #40B838 #66CE5F #93DD8E

Accessibility & contrast

On white

2.58
#40B838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#40B838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B838
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B838#FFFFFF#000000##000000
##40B8381.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA725
Deuteranopia (green-blind)
#AE9D44
Tritanopia (blue-blind)
#27B29E
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #40b838;
/* rgb */ color: rgb(64, 184, 56);
/* oklch */ color: oklch(69.0% 0.197 142.2);
Tailwind
colors: {
  custom: {
    50: '#84ce75',
    500: '#40b838',
    950: '#000000',
  },
}
SCSS
$custom: #40b838;
$custom-light: #84ce75;
$custom-dark: #000000;
JSON
{
  "hex": "#40b838",
  "rgb": {
    "r": 64,
    "g": 184,
    "b": 56
  },
  "hsl": {
    "h": 116.25,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.69015,
    "c": 0.19744,
    "h": 142.2
  },
  "luminance": 0.35656
}

Semantic roles & 50–950 ramp

primary
#40B838
secondary
#C385C7
accent
#4BDDD4
background
#F8FCF7
surface
#F0F9ED
border
#CBD2C8
text
#0C1409
muted
#7D827B

Preview Lab

Preview with #40B838

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

Preview Lab → · Contrast checker → · Palette generator →

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