#40A231#40A231

#40A231 is a light, vivid green. Relative luminance 0.272; OKLCH L 63.1% C 0.176 H 141.2°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#40A231
RGBrgb(64, 162, 49)
HSLhsl(112, 54%, 41%)
HSVhsv(112, 70%, 64%)
CMYKcmyk(60.5%, 0%, 69.8%, 36.5%)
CIE-LABlab(59.11, -50.08, 48.17)
CIE-LCHlch(59.11, 69.48, 136.11°)
OKLaboklab(63.09% -0.1369 0.1102)
OKLCHoklch(63.09% 0.176 141.2)
XYZxyz(15.5883, 27.1510, 7.3243)
Luminance0.2715 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A231 #9331A2
analogous
#79A231 #40A231 #31A25B
triadic
#40A231 #3140A2 #A23140
tetradic
#40A231 #3179A2 #9331A2 #A25B31
square
#40A231 #3179A2 #9331A2 #A25B31
split-complementary
#40A231 #5B31A2 #A23179
monochromatic
#1B4415 #2D7323 #40A231 #59C848 #84D677

Accessibility & contrast

On white

3.27
#40A231 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#40A231 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A231
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A231#FFFFFF#000000##000000
##40A2311.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69320
Deuteranopia (green-blind)
#9A8B3C
Tritanopia (blue-blind)
#319D8B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #40a231;
/* rgb */ color: rgb(64, 162, 49);
/* oklch */ color: oklch(63.1% 0.176 141.2);
Tailwind
colors: {
  custom: {
    50: '#80be6f',
    500: '#40a231',
    950: '#000000',
  },
}
SCSS
$custom: #40a231;
$custom-light: #80be6f;
$custom-dark: #000000;
JSON
{
  "hex": "#40a231",
  "rgb": {
    "r": 64,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 112.035,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.63092,
    "c": 0.17569,
    "h": 141.2
  },
  "luminance": 0.27152
}

Semantic roles & 50–950 ramp

primary
#40A231
secondary
#B471BE
accent
#4BDDCA
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0B1208
muted
#7C817B

Preview Lab

Preview with #40A231

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

Preview Lab → · Contrast checker → · Palette generator →

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