#40B41F#40B41F

#40B41F is a light, highly saturated green. Relative luminance 0.338; OKLCH L 67.8% C 0.206 H 140.2°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#40B41F
RGBrgb(64, 180, 31)
HSLhsl(107, 71%, 41%)
HSVhsv(107, 83%, 71%)
CMYKcmyk(64.4%, 0%, 82.8%, 29.4%)
CIE-LABlab(64.83, -57.68, 59.85)
CIE-LCHlch(64.83, 83.12, 133.94°)
OKLaboklab(67.79% -0.1583 0.1321)
OKLCHoklch(67.79% 0.206 140.2)
XYZxyz(18.6820, 33.8296, 6.8413)
Luminance0.3383 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B41F #931FB4
analogous
#8BB41F #40B41F #1FB448
triadic
#40B41F #1F40B4 #B41F40
tetradic
#40B41F #1F8BB4 #931FB4 #B4481F
square
#40B41F #1F8BB4 #931FB4 #B4481F
split-complementary
#40B41F #481FB4 #B41F8B
monochromatic
#1B4C0D #2D8016 #40B41F #59DC34 #84E568

Accessibility & contrast

On white

2.70
#40B41F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#40B41F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B41F
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B41F#FFFFFF#000000##000000
##40B41F1.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#AB9A32
Tritanopia (blue-blind)
#2EAE99
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #40b41f;
/* rgb */ color: rgb(64, 180, 31);
/* oklch */ color: oklch(67.8% 0.206 140.2);
Tailwind
colors: {
  custom: {
    50: '#84cb69',
    500: '#40b41f',
    950: '#000000',
  },
}
SCSS
$custom: #40b41f;
$custom-light: #84cb69;
$custom-dark: #000000;
JSON
{
  "hex": "#40b41f",
  "rgb": {
    "r": 64,
    "g": 180,
    "b": 31
  },
  "hsl": {
    "h": 106.711,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.67786,
    "c": 0.20619,
    "h": 140.2
  },
  "luminance": 0.33831
}

Semantic roles & 50–950 ramp

primary
#40B41F
secondary
#B464CB
accent
#3AEDC6
background
#F8FCF6
surface
#F0F9EC
border
#CBD2C7
text
#0C1307
muted
#7D827A

Preview Lab

Preview with #40B41F

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

Preview Lab → · Contrast checker → · Palette generator →

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