#40A126#40A126

#40A126 is a light, vivid green. Relative luminance 0.267; OKLCH L 62.7% C 0.181 H 140.0°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#40A126
RGBrgb(64, 161, 38)
HSLhsl(107, 62%, 39%)
HSVhsv(107, 76%, 63%)
CMYKcmyk(60.2%, 0%, 76.4%, 36.9%)
CIE-LABlab(58.71, -50.59, 51.92)
CIE-LCHlch(58.71, 72.49, 134.26°)
OKLaboklab(62.74% -0.1389 0.1165)
OKLCHoklch(62.74% 0.181 140)
XYZxyz(15.2084, 26.7183, 6.1890)
Luminance0.2672 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A126 #8726A1
analogous
#7EA126 #40A126 #26A14A
triadic
#40A126 #2640A1 #A12640
tetradic
#40A126 #267EA1 #8726A1 #A14A26
square
#40A126 #267EA1 #8726A1 #A14A26
split-complementary
#40A126 #4A26A1 #A1267E
monochromatic
#193E0F #2C6F1A #40A126 #56CF35 #7FDB66

Accessibility & contrast

On white

3.31
#40A126 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#40A126 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A126
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A126#FFFFFF#000000##000000
##40A1261.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A6920A
Deuteranopia (green-blind)
#9A8A33
Tritanopia (blue-blind)
#339C8A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #40a126;
/* rgb */ color: rgb(64, 161, 38);
/* oklch */ color: oklch(62.7% 0.181 140.0);
Tailwind
colors: {
  custom: {
    50: '#81be69',
    500: '#40a126',
    950: '#000000',
  },
}
SCSS
$custom: #40a126;
$custom-light: #81be69;
$custom-dark: #000000;
JSON
{
  "hex": "#40a126",
  "rgb": {
    "r": 64,
    "g": 161,
    "b": 38
  },
  "hsl": {
    "h": 107.317,
    "s": 61.809,
    "l": 39.02
  },
  "oklch": {
    "l": 0.62737,
    "c": 0.18129,
    "h": 140
  },
  "luminance": 0.2672
}

Semantic roles & 50–950 ramp

primary
#40A126
secondary
#AD62C1
accent
#43E5C3
background
#F8FBF6
surface
#EFF7EB
border
#CAD0C6
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #40A126

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

Preview Lab → · Contrast checker → · Palette generator →

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