#40A239#40A239

#40A239 is a light, vivid green. Relative luminance 0.272; OKLCH L 63.2% C 0.170 H 142.2°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#40A239
RGBrgb(64, 162, 57)
HSLhsl(116, 48%, 43%)
HSVhsv(116, 65%, 64%)
CMYKcmyk(60.5%, 0%, 64.8%, 36.5%)
CIE-LABlab(59.18, -49.30, 44.84)
CIE-LCHlch(59.18, 66.64, 137.71°)
OKLaboklab(63.17% -0.1343 0.1041)
OKLCHoklch(63.17% 0.17 142.2)
XYZxyz(15.7724, 27.2246, 8.2938)
Luminance0.2723 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A239 #9B39A2
analogous
#74A239 #40A239 #39A266
triadic
#40A239 #3940A2 #A23940
tetradic
#40A239 #3974A2 #9B39A2 #A26639
square
#40A239 #3974A2 #9B39A2 #A26639
split-complementary
#40A239 #6639A2 #A23974
monochromatic
#1C4719 #2E7529 #40A239 #5CC355 #88D382

Accessibility & contrast

On white

3.26
#40A239 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#40A239 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A239
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A239#FFFFFF#000000##000000
##40A2391.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A6942C
Deuteranopia (green-blind)
#998B42
Tritanopia (blue-blind)
#309D8C
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #40a239;
/* rgb */ color: rgb(64, 162, 57);
/* oklch */ color: oklch(63.2% 0.170 142.2);
Tailwind
colors: {
  custom: {
    50: '#80be74',
    500: '#40a239',
    950: '#000000',
  },
}
SCSS
$custom: #40a239;
$custom-light: #80be74;
$custom-dark: #000000;
JSON
{
  "hex": "#40a239",
  "rgb": {
    "r": 64,
    "g": 162,
    "b": 57
  },
  "hsl": {
    "h": 116,
    "s": 47.945,
    "l": 42.941
  },
  "oklch": {
    "l": 0.6317,
    "c": 0.16991,
    "h": 142.2
  },
  "luminance": 0.27226
}

Semantic roles & 50–950 ramp

primary
#40A239
secondary
#B87ABD
accent
#50D8CF
background
#F8FBF7
surface
#EFF7ED
border
#CAD0C8
text
#0B1208
muted
#7C817B

Preview Lab

Preview with #40A239

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

Preview Lab → · Contrast checker → · Palette generator →

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