#40AF2C#40AF2C

#40AF2C is a light, vivid green. Relative luminance 0.319; OKLCH L 66.5% C 0.194 H 140.9°. Best body text is #000000 at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#40AF2C
RGBrgb(64, 175, 44)
HSLhsl(111, 60%, 43%)
HSVhsv(111, 75%, 69%)
CMYKcmyk(63.4%, 0%, 74.9%, 31.4%)
CIE-LABlab(63.28, -55.16, 54.34)
CIE-LCHlch(63.28, 77.43, 135.43°)
OKLaboklab(66.53% -0.1509 0.1224)
OKLCHoklch(66.53% 0.194 140.9)
XYZxyz(17.8981, 31.9300, 7.6023)
Luminance0.3193 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF2C #9B2CAF
analogous
#81AF2C #40AF2C #2CAF5A
triadic
#40AF2C #2C40AF #AF2C40
tetradic
#40AF2C #2C81AF #9B2CAF #AF5A2C
square
#40AF2C #2C81AF #9B2CAF #AF5A2C
split-complementary
#40AF2C #5A2CAF #AF2C81
monochromatic
#1C4D13 #2E7E20 #40AF2C #5CD147 #88DD78

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40AF2C#FFFFFF#000000##000000
##40AF2C1.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)
#B49F11
Deuteranopia (green-blind)
#A6963A
Tritanopia (blue-blind)
#2EA996
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #40af2c;
/* rgb */ color: rgb(64, 175, 44);
/* oklch */ color: oklch(66.5% 0.194 140.9);
Tailwind
colors: {
  custom: {
    50: '#83c86e',
    500: '#40af2c',
    950: '#000000',
  },
}
SCSS
$custom: #40af2c;
$custom-light: #83c86e;
$custom-dark: #000000;
JSON
{
  "hex": "#40af2c",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 44
  },
  "hsl": {
    "h": 110.84,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.6653,
    "c": 0.1943,
    "h": 140.9
  },
  "luminance": 0.31932
}

Semantic roles & 50–950 ramp

primary
#40AF2C
secondary
#B872C5
accent
#45E3CB
background
#F8FCF6
surface
#F0F8EC
border
#CBD1C7
text
#0C1308
muted
#7D827B

Preview Lab

Preview with #40AF2C

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

Preview Lab → · Contrast checker → · Palette generator →

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