#40AF26#40AF26

#40AF26 is a light, vivid green. Relative luminance 0.319; OKLCH L 66.5% C 0.197 H 140.5°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#40AF26
RGBrgb(64, 175, 38)
HSLhsl(109, 64%, 42%)
HSVhsv(109, 78%, 69%)
CMYKcmyk(63.4%, 0%, 78.3%, 31.4%)
CIE-LABlab(63.25, -55.57, 56.33)
CIE-LCHlch(63.25, 79.12, 134.61°)
OKLaboklab(66.49% -0.1523 0.1257)
OKLCHoklch(66.49% 0.197 140.5)
XYZxyz(17.7933, 31.8881, 7.0507)
Luminance0.3189 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF26 #9526AF
analogous
#85AF26 #40AF26 #26AF51
triadic
#40AF26 #2640AF #AF2640
tetradic
#40AF26 #2685AF #9526AF #AF5126
square
#40AF26 #2685AF #9526AF #AF5126
split-complementary
#40AF26 #5126AF #AF2685
monochromatic
#1B4A10 #2E7D1B #40AF26 #5AD53D #85E070

Accessibility & contrast

On white

2.85
#40AF26 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#40AF26 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AF26
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AF26#FFFFFF#000000##000000
##40AF261.002.857.387.38
#FFFFFF2.851.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F00
Deuteranopia (green-blind)
#A69636
Tritanopia (blue-blind)
#2FA995
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #40af26;
/* rgb */ color: rgb(64, 175, 38);
/* oklch */ color: oklch(66.5% 0.197 140.5);
Tailwind
colors: {
  custom: {
    50: '#83c86b',
    500: '#40af26',
    950: '#000000',
  },
}
SCSS
$custom: #40af26;
$custom-light: #83c86b;
$custom-dark: #000000;
JSON
{
  "hex": "#40af26",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 38
  },
  "hsl": {
    "h": 108.613,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.6649,
    "c": 0.19748,
    "h": 140.5
  },
  "luminance": 0.3189
}

Semantic roles & 50–950 ramp

primary
#40AF26
secondary
#B56AC7
accent
#40E7C8
background
#F8FCF6
surface
#F0F8EC
border
#CBD1C7
text
#0C1307
muted
#7D827A

Preview Lab

Preview with #40AF26

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

Preview Lab → · Contrast checker → · Palette generator →

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