#40A828#40A828

#40A828 is a light, vivid green. Relative luminance 0.292; OKLCH L 64.6% C 0.188 H 140.4°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#40A828
RGBrgb(64, 168, 40)
HSLhsl(109, 62%, 41%)
HSVhsv(109, 76%, 66%)
CMYKcmyk(61.9%, 0%, 76.2%, 34.1%)
CIE-LABlab(61.00, -52.97, 53.47)
CIE-LCHlch(61.00, 75.27, 134.73°)
OKLaboklab(64.63% -0.1452 0.1201)
OKLCHoklch(64.63% 0.188 140.4)
XYZxyz(16.4992, 29.2469, 6.7828)
Luminance0.2925 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A828 #9028A8
analogous
#80A828 #40A828 #28A850
triadic
#40A828 #2840A8 #A82840
tetradic
#40A828 #2880A8 #9028A8 #A85028
square
#40A828 #2880A8 #9028A8 #A85028
split-complementary
#40A828 #5028A8 #A82880
monochromatic
#1A4510 #2D771C #40A828 #58D13D #83DC6E

Accessibility & contrast

On white

3.07
#40A828 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.85
#40A828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A828
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A828#FFFFFF#000000##000000
##40A8281.003.076.856.85
#FFFFFF3.071.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD980B
Deuteranopia (green-blind)
#A09036
Tritanopia (blue-blind)
#31A290
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #40a828;
/* rgb */ color: rgb(64, 168, 40);
/* oklch */ color: oklch(64.6% 0.188 140.4);
Tailwind
colors: {
  custom: {
    50: '#82c36b',
    500: '#40a828',
    950: '#000000',
  },
}
SCSS
$custom: #40a828;
$custom-light: #82c36b;
$custom-dark: #000000;
JSON
{
  "hex": "#40a828",
  "rgb": {
    "r": 64,
    "g": 168,
    "b": 40
  },
  "hsl": {
    "h": 108.75,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.64631,
    "c": 0.1884,
    "h": 140.4
  },
  "luminance": 0.29248
}

Semantic roles & 50–950 ramp

primary
#40A828
secondary
#B269C3
accent
#43E5C6
background
#F8FCF6
surface
#F0F8EC
border
#CBD1C7
text
#0C1307
muted
#7D827A

Preview Lab

Preview with #40A828

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

Preview Lab → · Contrast checker → · Palette generator →

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