#40B12F#40B12F

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

Color values

HEX#40B12F
RGBrgb(64, 177, 47)
HSLhsl(112, 58%, 44%)
HSVhsv(112, 73%, 69%)
CMYKcmyk(63.8%, 0%, 73.4%, 30.6%)
CIE-LABlab(63.95, -55.63, 53.93)
CIE-LCHlch(63.95, 77.48, 135.89°)
OKLaboklab(67.08% -0.152 0.122)
OKLCHoklch(67.08% 0.195 141.2)
XYZxyz(18.3486, 32.7377, 8.0408)
Luminance0.3274 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B12F #A02FB1
analogous
#81B12F #40B12F #2FB15F
triadic
#40B12F #2F40B1 #B12F40
tetradic
#40B12F #2F81B1 #A02FB1 #B15F2F
square
#40B12F #2F81B1 #A02FB1 #B15F2F
split-complementary
#40B12F #5F2FB1 #B12F81
monochromatic
#1D5015 #2F8122 #40B12F #5ED04D #8ADD7E

Accessibility & contrast

On white

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

On black

7.55
#40B12F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B12F
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B12F#FFFFFF#000000##000000
##40B12F1.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A117
Deuteranopia (green-blind)
#A8973C
Tritanopia (blue-blind)
#2CAB98
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #40b12f;
/* rgb */ color: rgb(64, 177, 47);
/* oklch */ color: oklch(67.1% 0.195 141.2);
Tailwind
colors: {
  custom: {
    50: '#83c970',
    500: '#40b12f',
    950: '#000000',
  },
}
SCSS
$custom: #40b12f;
$custom-light: #83c970;
$custom-dark: #000000;
JSON
{
  "hex": "#40b12f",
  "rgb": {
    "r": 64,
    "g": 177,
    "b": 47
  },
  "hsl": {
    "h": 112.154,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.67085,
    "c": 0.19488,
    "h": 141.2
  },
  "luminance": 0.3274
}

Semantic roles & 50–950 ramp

primary
#40B12F
secondary
#BB76C5
accent
#47E1CD
background
#F8FCF7
surface
#F0F8ED
border
#CBD1C8
text
#0C1308
muted
#7D827B

Preview Lab

Preview with #40B12F

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

Preview Lab → · Contrast checker → · Palette generator →

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