#40AF2A#40AF2A

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

Color values

HEX#40AF2A
RGBrgb(64, 175, 42)
HSLhsl(110, 61%, 43%)
HSVhsv(110, 76%, 69%)
CMYKcmyk(63.4%, 0%, 76%, 31.4%)
CIE-LABlab(63.27, -55.30, 55.03)
CIE-LCHlch(63.27, 78.01, 135.14°)
OKLaboklab(66.52% -0.1514 0.1236)
OKLCHoklch(66.52% 0.195 140.8)
XYZxyz(17.8614, 31.9154, 7.4090)
Luminance0.3192 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF2A #992AAF
analogous
#83AF2A #40AF2A #2AAF56
triadic
#40AF2A #2A40AF #AF2A40
tetradic
#40AF2A #2A83AF #992AAF #AF562A
square
#40AF2A #2A83AF #992AAF #AF562A
split-complementary
#40AF2A #562AAF #AF2A83
monochromatic
#1C4C12 #2E7E1E #40AF2A #5CD244 #87DE75

Accessibility & contrast

On white

2.84
#40AF2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##40AF2A#FFFFFF#000000##000000
##40AF2A1.002.847.387.38
#FFFFFF2.841.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F0C
Deuteranopia (green-blind)
#A69639
Tritanopia (blue-blind)
#2EA996
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #40af2a;
/* rgb */ color: rgb(64, 175, 42);
/* oklch */ color: oklch(66.5% 0.195 140.8);
Tailwind
colors: {
  custom: {
    50: '#83c86d',
    500: '#40af2a',
    950: '#000000',
  },
}
SCSS
$custom: #40af2a;
$custom-light: #83c86d;
$custom-dark: #000000;
JSON
{
  "hex": "#40af2a",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 110.075,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.66516,
    "c": 0.1954,
    "h": 140.8
  },
  "luminance": 0.31917
}

Semantic roles & 50–950 ramp

primary
#40AF2A
secondary
#B76FC6
accent
#43E4CA
background
#F8FCF6
surface
#F0F8EC
border
#CBD1C7
text
#0C1308
muted
#7D827B

Preview Lab

Preview with #40AF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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