#40A045#40A045

#40A045 is a light, vivid green. Relative luminance 0.267; OKLCH L 62.8% C 0.157 H 144.3°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#40A045
RGBrgb(64, 160, 69)
HSLhsl(123, 43%, 44%)
HSVhsv(123, 60%, 63%)
CMYKcmyk(60%, 0%, 56.9%, 37.3%)
CIE-LABlab(58.66, -47.12, 38.65)
CIE-LCHlch(58.66, 60.95, 140.64°)
OKLaboklab(62.78% -0.1278 0.0919)
OKLCHoklch(62.78% 0.157 144.3)
XYZxyz(15.7584, 26.6598, 9.9445)
Luminance0.2666 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A045 #A0409B
analogous
#6BA040 #40A045 #40A075
triadic
#40A045 #4540A0 #A04540
tetradic
#40A045 #406BA0 #A0409B #A07540
square
#40A045 #406BA0 #A0409B #A07540
split-complementary
#40A045 #7540A0 #A0406B
monochromatic
#1D491F #2F7432 #40A045 #5EBF63 #8AD08E

Accessibility & contrast

On white

3.32
#40A045 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#40A045 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A045
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A045#FFFFFF#000000##000000
##40A0451.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A3923C
Deuteranopia (green-blind)
#978A4C
Tritanopia (blue-blind)
#2D9C8C
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #40a045;
/* rgb */ color: rgb(64, 160, 69);
/* oklch */ color: oklch(62.8% 0.157 144.3);
Tailwind
colors: {
  custom: {
    50: '#7fbd7b',
    500: '#40a045',
    950: '#000000',
  },
}
SCSS
$custom: #40a045;
$custom-light: #7fbd7b;
$custom-dark: #000000;
JSON
{
  "hex": "#40a045",
  "rgb": {
    "r": 64,
    "g": 160,
    "b": 69
  },
  "hsl": {
    "h": 123.125,
    "s": 42.857,
    "l": 43.922
  },
  "oklch": {
    "l": 0.62779,
    "c": 0.15741,
    "h": 144.3
  },
  "luminance": 0.26661
}

Semantic roles & 50–950 ramp

primary
#40A045
secondary
#BB81B8
accent
#55CCD3
background
#F8FBF7
surface
#EFF7EE
border
#CAD0C9
text
#0B1209
muted
#7C817B

Preview Lab

Preview with #40A045

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

Preview Lab → · Contrast checker → · Palette generator →

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