#40B31F#40B31F

#40B31F is a light, highly saturated green. Relative luminance 0.334; OKLCH L 67.5% C 0.205 H 140.1°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#40B31F
RGBrgb(64, 179, 31)
HSLhsl(107, 70%, 41%)
HSVhsv(107, 83%, 70%)
CMYKcmyk(64.2%, 0%, 82.7%, 29.8%)
CIE-LABlab(64.51, -57.34, 59.55)
CIE-LCHlch(64.51, 82.67, 133.92°)
OKLaboklab(67.52% -0.1574 0.1315)
OKLCHoklch(67.52% 0.205 140.1)
XYZxyz(18.4809, 33.4273, 6.7742)
Luminance0.3343 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B31F #921FB3
analogous
#8AB31F #40B31F #1FB348
triadic
#40B31F #1F40B3 #B31F40
tetradic
#40B31F #1F8AB3 #921FB3 #B3481F
square
#40B31F #1F8AB3 #921FB3 #B3481F
split-complementary
#40B31F #481FB3 #B31F8A
monochromatic
#1B4B0D #2D7F16 #40B31F #59DC33 #84E568

Accessibility & contrast

On white

2.73
#40B31F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#40B31F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B31F
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B31F#FFFFFF#000000##000000
##40B31F1.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A200
Deuteranopia (green-blind)
#AA9932
Tritanopia (blue-blind)
#2EAD98
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #40b31f;
/* rgb */ color: rgb(64, 179, 31);
/* oklch */ color: oklch(67.5% 0.205 140.1);
Tailwind
colors: {
  custom: {
    50: '#84cb69',
    500: '#40b31f',
    950: '#000000',
  },
}
SCSS
$custom: #40b31f;
$custom-light: #84cb69;
$custom-dark: #000000;
JSON
{
  "hex": "#40b31f",
  "rgb": {
    "r": 64,
    "g": 179,
    "b": 31
  },
  "hsl": {
    "h": 106.622,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.67519,
    "c": 0.20509,
    "h": 140.1
  },
  "luminance": 0.33429
}

Semantic roles & 50–950 ramp

primary
#40B31F
secondary
#B364CA
accent
#3BEDC5
background
#F8FCF6
surface
#F0F9EC
border
#CBD2C7
text
#0C1307
muted
#7D827A

Preview Lab

Preview with #40B31F

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

Preview Lab → · Contrast checker → · Palette generator →

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