#40B12C#40B12C

#40B12C is a light, vivid green. Relative luminance 0.327; OKLCH L 67.1% C 0.197 H 141.0°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#40B12C
RGBrgb(64, 177, 44)
HSLhsl(111, 60%, 43%)
HSVhsv(111, 75%, 69%)
CMYKcmyk(63.8%, 0%, 75.1%, 30.6%)
CIE-LABlab(63.93, -55.85, 54.98)
CIE-LCHlch(63.93, 78.38, 135.45°)
OKLaboklab(67.06% -0.1527 0.1238)
OKLCHoklch(67.06% 0.197 141)
XYZxyz(18.2902, 32.7143, 7.7330)
Luminance0.3272 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B12C #9D2CB1
analogous
#82B12C #40B12C #2CB15A
triadic
#40B12C #2C40B1 #B12C40
tetradic
#40B12C #2C82B1 #9D2CB1 #B15A2C
square
#40B12C #2C82B1 #9D2CB1 #B15A2C
split-complementary
#40B12C #5A2CB1 #B12C82
monochromatic
#1D4F14 #2E8020 #40B12C #5DD249 #89DE7A

Accessibility & contrast

On white

2.78
#40B12C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#40B12C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B12C
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B12C#FFFFFF#000000##000000
##40B12C1.002.787.547.54
#FFFFFF2.781.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A110
Deuteranopia (green-blind)
#A8973A
Tritanopia (blue-blind)
#2DAB98
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #40b12c;
/* rgb */ color: rgb(64, 177, 44);
/* oklch */ color: oklch(67.1% 0.197 141.0);
Tailwind
colors: {
  custom: {
    50: '#83c96e',
    500: '#40b12c',
    950: '#000000',
  },
}
SCSS
$custom: #40b12c;
$custom-light: #83c96e;
$custom-dark: #000000;
JSON
{
  "hex": "#40b12c",
  "rgb": {
    "r": 64,
    "g": 177,
    "b": 44
  },
  "hsl": {
    "h": 110.977,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.67063,
    "c": 0.1966,
    "h": 141
  },
  "luminance": 0.32716
}

Semantic roles & 50–950 ramp

primary
#40B12C
secondary
#B973C6
accent
#44E3CB
background
#F8FCF6
surface
#F0F8EC
border
#CBD1C7
text
#0C1308
muted
#7D827B

Preview Lab

Preview with #40B12C

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

Preview Lab → · Contrast checker → · Palette generator →

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