#40B951#40B951

#40B951 is a light, vivid green. Relative luminance 0.364; OKLCH L 69.5% C 0.180 H 145.7°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#40B951
RGBrgb(64, 185, 81)
HSLhsl(128, 49%, 49%)
HSVhsv(128, 65%, 73%)
CMYKcmyk(65.4%, 0%, 56.2%, 27.5%)
CIE-LABlab(66.81, -54.92, 42.55)
CIE-LCHlch(66.81, 69.47, 142.23°)
OKLaboklab(69.55% -0.1484 0.1013)
OKLCHoklch(69.55% 0.18 145.7)
XYZxyz(20.9471, 36.3798, 13.7011)
Luminance0.3638 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B951 #B940A8
analogous
#6CB940 #40B951 #40B98E
triadic
#40B951 #5140B9 #B95140
tetradic
#40B951 #406CB9 #B940A8 #B98E40
square
#40B951 #406CB9 #B940A8 #B98E40
split-complementary
#40B951 #8E40B9 #B9406C
monochromatic
#215E29 #308C3D #40B951 #6BCC78 #98DBA1

Accessibility & contrast

On white

2.54
#40B951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#40B951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B951
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B951#FFFFFF#000000##000000
##40B9511.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA947
Deuteranopia (green-blind)
#AD9F59
Tritanopia (blue-blind)
#1DB5A2
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #40b951;
/* rgb */ color: rgb(64, 185, 81);
/* oklch */ color: oklch(69.5% 0.180 145.7);
Tailwind
colors: {
  custom: {
    50: '#83cf85',
    500: '#40b951',
    950: '#000000',
  },
}
SCSS
$custom: #40b951;
$custom-light: #83cf85;
$custom-dark: #000000;
JSON
{
  "hex": "#40b951",
  "rgb": {
    "r": 64,
    "g": 185,
    "b": 81
  },
  "hsl": {
    "h": 128.43,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.69549,
    "c": 0.17972,
    "h": 145.7
  },
  "luminance": 0.36382
}

Semantic roles & 50–950 ramp

primary
#40B951
secondary
#C78EBF
accent
#50C5D8
background
#F8FCF8
surface
#F0F9EF
border
#CBD2CA
text
#0C140B
muted
#7D827C

Preview Lab

Preview with #40B951

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

Preview Lab → · Contrast checker → · Palette generator →

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