#40AF30#40AF30

#40AF30 is a light, vivid green. Relative luminance 0.320; OKLCH L 66.6% C 0.192 H 141.3°. Best body text is #000000 at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#40AF30
RGBrgb(64, 175, 48)
HSLhsl(112, 57%, 44%)
HSVhsv(112, 73%, 69%)
CMYKcmyk(63.4%, 0%, 72.6%, 31.4%)
CIE-LABlab(63.31, -54.85, 52.91)
CIE-LCHlch(63.31, 76.21, 136.03°)
OKLaboklab(66.56% -0.1498 0.12)
OKLCHoklch(66.56% 0.192 141.3)
XYZxyz(17.9769, 31.9616, 8.0176)
Luminance0.3196 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF30 #9F30AF
analogous
#7FAF30 #40AF30 #30AF5F
triadic
#40AF30 #3040AF #AF3040
tetradic
#40AF30 #307FAF #9F30AF #AF5F30
square
#40AF30 #307FAF #9F30AF #AF5F30
split-complementary
#40AF30 #5F30AF #AF307F
monochromatic
#1D4F16 #2E7F23 #40AF30 #5ECE4E #8ADC7E

Accessibility & contrast

On white

2.84
#40AF30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.39
#40AF30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AF30
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AF30#FFFFFF#000000##000000
##40AF301.002.847.397.39
#FFFFFF2.841.0021.0021.00
#0000007.3921.001.001.00
##0000007.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F1A
Deuteranopia (green-blind)
#A6963D
Tritanopia (blue-blind)
#2DAA96
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #40af30;
/* rgb */ color: rgb(64, 175, 48);
/* oklch */ color: oklch(66.6% 0.192 141.3);
Tailwind
colors: {
  custom: {
    50: '#83c870',
    500: '#40af30',
    950: '#000000',
  },
}
SCSS
$custom: #40af30;
$custom-light: #83c870;
$custom-dark: #000000;
JSON
{
  "hex": "#40af30",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 48
  },
  "hsl": {
    "h": 112.441,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.6656,
    "c": 0.19195,
    "h": 141.3
  },
  "luminance": 0.31963
}

Semantic roles & 50–950 ramp

primary
#40AF30
secondary
#BB76C4
accent
#48E0CD
background
#F8FCF7
surface
#F0F8ED
border
#CBD1C8
text
#0C1308
muted
#7D827B

Preview Lab

Preview with #40AF30

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

Preview Lab → · Contrast checker → · Palette generator →

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