#40AF45#40AF45

#40AF45 is a light, vivid green. Relative luminance 0.322; OKLCH L 66.8% C 0.177 H 144.0°. Best body text is #000000 at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#40AF45
RGBrgb(64, 175, 69)
HSLhsl(123, 46%, 47%)
HSVhsv(123, 63%, 69%)
CMYKcmyk(63.4%, 0%, 60.6%, 31.4%)
CIE-LABlab(63.49, -52.77, 44.29)
CIE-LCHlch(63.49, 68.89, 139.99°)
OKLaboklab(66.77% -0.1431 0.1041)
OKLCHoklch(66.77% 0.177 144)
XYZxyz(18.5174, 32.1778, 10.8641)
Luminance0.3218 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF45 #AF40AA
analogous
#73AF40 #40AF45 #40AF7D
triadic
#40AF45 #4540AF #AF4540
tetradic
#40AF45 #4073AF #AF40AA #AF7D40
square
#40AF45 #4073AF #AF40AA #AF7D40
split-complementary
#40AF45 #7D40AF #AF4073
monochromatic
#1F5522 #308233 #40AF45 #65C76A #92D795

Accessibility & contrast

On white

2.82
#40AF45 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.44
#40AF45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AF45
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AF45#FFFFFF#000000##000000
##40AF451.002.827.447.44
#FFFFFF2.821.0021.0021.00
#0000007.4421.001.001.00
##0000007.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F3A
Deuteranopia (green-blind)
#A5964E
Tritanopia (blue-blind)
#28AA98
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #40af45;
/* rgb */ color: rgb(64, 175, 69);
/* oklch */ color: oklch(66.8% 0.177 144.0);
Tailwind
colors: {
  custom: {
    50: '#82c87c',
    500: '#40af45',
    950: '#000000',
  },
}
SCSS
$custom: #40af45;
$custom-light: #82c87c;
$custom-dark: #000000;
JSON
{
  "hex": "#40af45",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 69
  },
  "hsl": {
    "h": 122.703,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.66765,
    "c": 0.17695,
    "h": 144
  },
  "luminance": 0.3218
}

Semantic roles & 50–950 ramp

primary
#40AF45
secondary
#C388C0
accent
#52D0D6
background
#F8FCF7
surface
#F0F8EE
border
#CBD1C9
text
#0C130A
muted
#7D827C

Preview Lab

Preview with #40AF45

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

Preview Lab → · Contrast checker → · Palette generator →

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