#40AF47#40AF47

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

Color values

HEX#40AF47
RGBrgb(64, 175, 71)
HSLhsl(124, 46%, 47%)
HSVhsv(124, 63%, 69%)
CMYKcmyk(63.4%, 0%, 59.4%, 31.4%)
CIE-LABlab(63.51, -52.53, 43.39)
CIE-LCHlch(63.51, 68.13, 140.45°)
OKLaboklab(66.79% -0.1424 0.1023)
OKLCHoklch(66.79% 0.175 144.3)
XYZxyz(18.5805, 32.2030, 11.1966)
Luminance0.3221 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF47 #AF40A8
analogous
#71AF40 #40AF47 #40AF7F
triadic
#40AF47 #4740AF #AF4740
tetradic
#40AF47 #4071AF #AF40A8 #AF7F40
square
#40AF47 #4071AF #AF40A8 #AF7F40
split-complementary
#40AF47 #7F40AF #AF4071
monochromatic
#1F5523 #308235 #40AF47 #65C76C #92D797

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40AF47#FFFFFF#000000##000000
##40AF471.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)
#B2A03C
Deuteranopia (green-blind)
#A4964F
Tritanopia (blue-blind)
#27AA98
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #40af47;
/* rgb */ color: rgb(64, 175, 71);
/* oklch */ color: oklch(66.8% 0.175 144.3);
Tailwind
colors: {
  custom: {
    50: '#82c87e',
    500: '#40af47',
    950: '#000000',
  },
}
SCSS
$custom: #40af47;
$custom-light: #82c87e;
$custom-dark: #000000;
JSON
{
  "hex": "#40af47",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 71
  },
  "hsl": {
    "h": 123.784,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.66789,
    "c": 0.17532,
    "h": 144.3
  },
  "luminance": 0.32205
}

Semantic roles & 50–950 ramp

primary
#40AF47
secondary
#C388BF
accent
#52CED6
background
#F8FCF7
surface
#F0F8EE
border
#CBD1C9
text
#0B130A
muted
#7C827C

Preview Lab

Preview with #40AF47

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

Preview Lab → · Contrast checker → · Palette generator →

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