#40B045#40B045

#40B045 is a light, vivid green. Relative luminance 0.326; OKLCH L 67.0% C 0.178 H 143.9°. Best body text is #000000 at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#40B045
RGBrgb(64, 176, 69)
HSLhsl(123, 47%, 47%)
HSVhsv(123, 64%, 69%)
CMYKcmyk(63.6%, 0%, 60.8%, 31%)
CIE-LABlab(63.81, -53.14, 44.66)
CIE-LCHlch(63.81, 69.41, 139.96°)
OKLaboklab(67.03% -0.1441 0.1049)
OKLCHoklch(67.03% 0.178 143.9)
XYZxyz(18.7127, 32.5685, 10.9293)
Luminance0.3257 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B045 #B040AB
analogous
#73B040 #40B045 #40B07D
triadic
#40B045 #4540B0 #B04540
tetradic
#40B045 #4073B0 #B040AB #B07D40
square
#40B045 #4073B0 #B040AB #B07D40
split-complementary
#40B045 #7D40B0 #B04073
monochromatic
#1F5622 #308333 #40B045 #66C76A #93D896

Accessibility & contrast

On white

2.79
#40B045 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.51
#40B045 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B045
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B045#FFFFFF#000000##000000
##40B0451.002.797.517.51
#FFFFFF2.791.0021.0021.00
#0000007.5121.001.001.00
##0000007.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A039
Deuteranopia (green-blind)
#A6974E
Tritanopia (blue-blind)
#27AB99
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #40b045;
/* rgb */ color: rgb(64, 176, 69);
/* oklch */ color: oklch(67.0% 0.178 143.9);
Tailwind
colors: {
  custom: {
    50: '#82c97c',
    500: '#40b045',
    950: '#000000',
  },
}
SCSS
$custom: #40b045;
$custom-light: #82c97c;
$custom-dark: #000000;
JSON
{
  "hex": "#40b045",
  "rgb": {
    "r": 64,
    "g": 176,
    "b": 69
  },
  "hsl": {
    "h": 122.679,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.6703,
    "c": 0.17822,
    "h": 143.9
  },
  "luminance": 0.3257
}

Semantic roles & 50–950 ramp

primary
#40B045
secondary
#C389C0
accent
#51D0D6
background
#F8FCF7
surface
#F0F8EE
border
#CBD1C9
text
#0C130A
muted
#7D827C

Preview Lab

Preview with #40B045

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

Preview Lab → · Contrast checker → · Palette generator →

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