#40A245#40A245

#40A245 is a light, vivid green. Relative luminance 0.274; OKLCH L 63.3% C 0.160 H 144.2°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#40A245
RGBrgb(64, 162, 69)
HSLhsl(123, 43%, 44%)
HSVhsv(123, 60%, 64%)
CMYKcmyk(60.5%, 0%, 57.4%, 36.5%)
CIE-LABlab(59.30, -47.89, 39.42)
CIE-LCHlch(59.30, 62.03, 140.54°)
OKLaboklab(63.31% -0.1299 0.0936)
OKLCHoklch(63.31% 0.16 144.2)
XYZxyz(16.1079, 27.3588, 10.0610)
Luminance0.2736 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A245 #A2409D
analogous
#6CA240 #40A245 #40A276
triadic
#40A245 #4540A2 #A24540
tetradic
#40A245 #406CA2 #A2409D #A27640
square
#40A245 #406CA2 #A2409D #A27640
split-complementary
#40A245 #7640A2 #A2406C
monochromatic
#1D4A20 #2F7632 #40A245 #5FC064 #8BD18F

Accessibility & contrast

On white

3.24
#40A245 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.47
#40A245 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A245
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A245#FFFFFF#000000##000000
##40A2451.003.246.476.47
#FFFFFF3.241.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A5943C
Deuteranopia (green-blind)
#988B4C
Tritanopia (blue-blind)
#2D9E8D
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #40a245;
/* rgb */ color: rgb(64, 162, 69);
/* oklch */ color: oklch(63.3% 0.160 144.2);
Tailwind
colors: {
  custom: {
    50: '#7fbe7b',
    500: '#40a245',
    950: '#000000',
  },
}
SCSS
$custom: #40a245;
$custom-light: #7fbe7b;
$custom-dark: #000000;
JSON
{
  "hex": "#40a245",
  "rgb": {
    "r": 64,
    "g": 162,
    "b": 69
  },
  "hsl": {
    "h": 123.061,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.63312,
    "c": 0.16009,
    "h": 144.2
  },
  "luminance": 0.2736
}

Semantic roles & 50–950 ramp

primary
#40A245
secondary
#BC82B9
accent
#55CDD3
background
#F8FBF7
surface
#EFF7EE
border
#CAD0C9
text
#0B1209
muted
#7C817B

Preview Lab

Preview with #40A245

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

Preview Lab → · Contrast checker → · Palette generator →

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