#40B126#40B126

#40B126 is a light, vivid green. Relative luminance 0.327; OKLCH L 67.0% C 0.200 H 140.5°. Best body text is #000000 at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#40B126
RGBrgb(64, 177, 38)
HSLhsl(109, 65%, 42%)
HSVhsv(109, 79%, 69%)
CMYKcmyk(63.8%, 0%, 78.5%, 30.6%)
CIE-LABlab(63.89, -56.26, 56.94)
CIE-LCHlch(63.89, 80.05, 134.65°)
OKLaboklab(67.02% -0.1541 0.127)
OKLCHoklch(67.02% 0.2 140.5)
XYZxyz(18.1855, 32.6724, 7.1814)
Luminance0.3267 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B126 #9726B1
analogous
#86B126 #40B126 #26B152
triadic
#40B126 #2640B1 #B12640
tetradic
#40B126 #2686B1 #9726B1 #B15226
square
#40B126 #2686B1 #9726B1 #B15226
split-complementary
#40B126 #5226B1 #B12686
monochromatic
#1C4C10 #2E7F1B #40B126 #5BD63F #86E071

Accessibility & contrast

On white

2.79
#40B126 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.53
#40B126 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B126
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B126#FFFFFF#000000##000000
##40B1261.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A000
Deuteranopia (green-blind)
#A89736
Tritanopia (blue-blind)
#2EAB97
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #40b126;
/* rgb */ color: rgb(64, 177, 38);
/* oklch */ color: oklch(67.0% 0.200 140.5);
Tailwind
colors: {
  custom: {
    50: '#83c96c',
    500: '#40b126',
    950: '#000000',
  },
}
SCSS
$custom: #40b126;
$custom-light: #83c96c;
$custom-dark: #000000;
JSON
{
  "hex": "#40b126",
  "rgb": {
    "r": 64,
    "g": 177,
    "b": 38
  },
  "hsl": {
    "h": 108.777,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.67024,
    "c": 0.19974,
    "h": 140.5
  },
  "luminance": 0.32674
}

Semantic roles & 50–950 ramp

primary
#40B126
secondary
#B66BC7
accent
#40E8C8
background
#F8FCF6
surface
#F0F8EC
border
#CBD1C7
text
#0C1307
muted
#7D827A

Preview Lab

Preview with #40B126

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

Preview Lab → · Contrast checker → · Palette generator →

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