#40AF34#40AF34

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

Color values

HEX#40AF34
RGBrgb(64, 175, 52)
HSLhsl(114, 54%, 45%)
HSVhsv(114, 70%, 69%)
CMYKcmyk(63.4%, 0%, 70.3%, 31.4%)
CIE-LABlab(63.34, -54.51, 51.41)
CIE-LCHlch(63.34, 74.93, 136.68°)
OKLaboklab(66.59% -0.1487 0.1174)
OKLCHoklch(66.59% 0.189 141.7)
XYZxyz(18.0632, 31.9961, 8.4721)
Luminance0.3200 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF34 #A334AF
analogous
#7EAF34 #40AF34 #34AF65
triadic
#40AF34 #3440AF #AF3440
tetradic
#40AF34 #347EAF #A334AF #AF6534
square
#40AF34 #347EAF #A334AF #AF6534
split-complementary
#40AF34 #6534AF #AF347E
monochromatic
#1D5118 #2F8026 #40AF34 #60CC54 #8CDA83

Accessibility & contrast

On white

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

On black

7.40
#40AF34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AF34
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AF34#FFFFFF#000000##000000
##40AF341.002.847.407.40
#FFFFFF2.841.0021.0021.00
#0000007.4021.001.001.00
##0000007.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F21
Deuteranopia (green-blind)
#A69640
Tritanopia (blue-blind)
#2CAA96
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #40af34;
/* rgb */ color: rgb(64, 175, 52);
/* oklch */ color: oklch(66.6% 0.189 141.7);
Tailwind
colors: {
  custom: {
    50: '#82c872',
    500: '#40af34',
    950: '#000000',
  },
}
SCSS
$custom: #40af34;
$custom-light: #82c872;
$custom-dark: #000000;
JSON
{
  "hex": "#40af34",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 52
  },
  "hsl": {
    "h": 114.146,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.66593,
    "c": 0.18942,
    "h": 141.7
  },
  "luminance": 0.31998
}

Semantic roles & 50–950 ramp

primary
#40AF34
secondary
#BD7BC4
accent
#4ADECF
background
#F8FCF7
surface
#F0F8ED
border
#CBD1C8
text
#0C1308
muted
#7D827B

Preview Lab

Preview with #40AF34

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

Preview Lab → · Contrast checker → · Palette generator →

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