#40AF1C#40AF1C

#40AF1C is a light, highly saturated green. Relative luminance 0.318; OKLCH L 66.4% C 0.202 H 139.8°. Best body text is #000000 at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#40AF1C
RGBrgb(64, 175, 28)
HSLhsl(105, 72%, 40%)
HSVhsv(105, 84%, 69%)
CMYKcmyk(63.4%, 0%, 84%, 31.4%)
CIE-LABlab(63.20, -56.12, 59.15)
CIE-LCHlch(63.20, 81.54, 133.49°)
OKLaboklab(66.44% -0.1542 0.1303)
OKLCHoklch(66.44% 0.202 139.8)
XYZxyz(17.6531, 31.8321, 6.3123)
Luminance0.3183 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF1C #8B1CAF
analogous
#8AAF1C #40AF1C #1CAF41
triadic
#40AF1C #1C40AF #AF1C40
tetradic
#40AF1C #1C8AAF #8B1CAF #AF411C
square
#40AF1C #1C8AAF #8B1CAF #AF411C
split-complementary
#40AF1C #411CAF #AF1C8A
monochromatic
#19450B #2D7A14 #40AF1C #57DD2B #81E660

Accessibility & contrast

On white

2.85
#40AF1C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.37
#40AF1C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AF1C
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AF1C#FFFFFF#000000##000000
##40AF1C1.002.857.377.37
#FFFFFF2.851.0021.0021.00
#0000007.3721.001.001.00
##0000007.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49E00
Deuteranopia (green-blind)
#A79630
Tritanopia (blue-blind)
#30A995
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #40af1c;
/* rgb */ color: rgb(64, 175, 28);
/* oklch */ color: oklch(66.4% 0.202 139.8);
Tailwind
colors: {
  custom: {
    50: '#84c867',
    500: '#40af1c',
    950: '#000000',
  },
}
SCSS
$custom: #40af1c;
$custom-light: #84c867;
$custom-dark: #000000;
JSON
{
  "hex": "#40af1c",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 28
  },
  "hsl": {
    "h": 105.306,
    "s": 72.414,
    "l": 39.804
  },
  "oklch": {
    "l": 0.66437,
    "c": 0.20189,
    "h": 139.8
  },
  "luminance": 0.31834
}

Semantic roles & 50–950 ramp

primary
#40AF1C
secondary
#AF5DCA
accent
#39EFC2
background
#F8FCF6
surface
#F0F8EB
border
#CBD1C6
text
#0C1307
muted
#7D827A

Preview Lab

Preview with #40AF1C

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

Preview Lab → · Contrast checker → · Palette generator →

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