#40A255#40A255

#40A255 is a light, vivid green. Relative luminance 0.276; OKLCH L 63.5% C 0.145 H 147.9°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#40A255
RGBrgb(64, 162, 85)
HSLhsl(133, 43%, 44%)
HSVhsv(133, 60%, 64%)
CMYKcmyk(60.5%, 0%, 47.5%, 36.5%)
CIE-LABlab(59.51, -45.59, 31.61)
CIE-LCHlch(59.51, 55.48, 145.26°)
OKLaboklab(63.55% -0.1232 0.0772)
OKLCHoklch(63.55% 0.145 147.9)
XYZxyz(16.6732, 27.5849, 13.0383)
Luminance0.2759 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A255 #A2408D
analogous
#5CA240 #40A255 #40A286
triadic
#40A255 #5540A2 #A25540
tetradic
#40A255 #405CA2 #A2408D #A28640
square
#40A255 #405CA2 #A2408D #A28640
split-complementary
#40A255 #8640A2 #A2405C
monochromatic
#1D4A27 #2F763E #40A255 #5FC074 #8BD19A

Accessibility & contrast

On white

3.22
#40A255 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#40A255 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A255
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A255#FFFFFF#000000##000000
##40A2551.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A4954F
Deuteranopia (green-blind)
#978C5A
Tritanopia (blue-blind)
#279F90
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #40a255;
/* rgb */ color: rgb(64, 162, 85);
/* oklch */ color: oklch(63.5% 0.145 147.9);
Tailwind
colors: {
  custom: {
    50: '#7fbe86',
    500: '#40a255',
    950: '#000000',
  },
}
SCSS
$custom: #40a255;
$custom-light: #7fbe86;
$custom-dark: #000000;
JSON
{
  "hex": "#40a255",
  "rgb": {
    "r": 64,
    "g": 162,
    "b": 85
  },
  "hsl": {
    "h": 132.857,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.63549,
    "c": 0.1454,
    "h": 147.9
  },
  "luminance": 0.27587
}

Semantic roles & 50–950 ramp

primary
#40A255
secondary
#BC82B0
accent
#55B8D3
background
#F8FBF8
surface
#EFF7EF
border
#CAD0CA
text
#0B120B
muted
#7C817C

Preview Lab

Preview with #40A255

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

Preview Lab → · Contrast checker → · Palette generator →

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