#40B04F#40B04F

#40B04F is a light, vivid green. Relative luminance 0.327; OKLCH L 67.2% C 0.170 H 145.7°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#40B04F
RGBrgb(64, 176, 79)
HSLhsl(128, 47%, 47%)
HSVhsv(128, 64%, 69%)
CMYKcmyk(63.6%, 0%, 55.1%, 31%)
CIE-LABlab(63.92, -51.87, 40.06)
CIE-LCHlch(63.92, 65.54, 142.32°)
OKLaboklab(67.16% -0.1403 0.0957)
OKLCHoklch(67.16% 0.17 145.7)
XYZxyz(19.0497, 32.7033, 12.7041)
Luminance0.3271 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B04F #B040A1
analogous
#69B040 #40B04F #40B087
triadic
#40B04F #4F40B0 #B04F40
tetradic
#40B04F #4069B0 #B040A1 #B08740
square
#40B04F #4069B0 #B040A1 #B08740
split-complementary
#40B04F #8740B0 #B04069
monochromatic
#1F5627 #30833B #40B04F #66C773 #93D89C

Accessibility & contrast

On white

2.78
#40B04F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#40B04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B04F
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B04F#FFFFFF#000000##000000
##40B04F1.002.787.547.54
#FFFFFF2.781.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A146
Deuteranopia (green-blind)
#A59756
Tritanopia (blue-blind)
#23AC9A
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #40b04f;
/* rgb */ color: rgb(64, 176, 79);
/* oklch */ color: oklch(67.2% 0.170 145.7);
Tailwind
colors: {
  custom: {
    50: '#81c883',
    500: '#40b04f',
    950: '#000000',
  },
}
SCSS
$custom: #40b04f;
$custom-light: #81c883;
$custom-dark: #000000;
JSON
{
  "hex": "#40b04f",
  "rgb": {
    "r": 64,
    "g": 176,
    "b": 79
  },
  "hsl": {
    "h": 128.036,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.67156,
    "c": 0.16982,
    "h": 145.7
  },
  "luminance": 0.32705
}

Semantic roles & 50–950 ramp

primary
#40B04F
secondary
#C389BB
accent
#51C5D6
background
#F8FCF8
surface
#F0F8EF
border
#CBD1CA
text
#0B130B
muted
#7C827C

Preview Lab

Preview with #40B04F

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

Preview Lab → · Contrast checker → · Palette generator →

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