#40C251#40C251

#40C251 is a light, vivid green. Relative luminance 0.403; OKLCH L 71.9% C 0.191 H 145.3°. Best body text is #000000 at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#40C251
RGBrgb(64, 194, 81)
HSLhsl(128, 52%, 51%)
HSVhsv(128, 67%, 76%)
CMYKcmyk(67%, 0%, 58.2%, 23.9%)
CIE-LABlab(69.66, -58.14, 45.91)
CIE-LCHlch(69.66, 74.08, 141.70°)
OKLaboklab(71.9% -0.1571 0.1086)
OKLCHoklch(71.9% 0.191 145.3)
XYZxyz(22.8898, 40.2652, 14.3486)
Luminance0.4027 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C251 #C240B1
analogous
#70C240 #40C251 #40C292
triadic
#40C251 #5140C2 #C25140
tetradic
#40C251 #4070C2 #C240B1 #C29240
square
#40C251 #4070C2 #C240B1 #C29240
split-complementary
#40C251 #9240C2 #C24070
monochromatic
#21672A #30953D #40C251 #6ED17B #9DE0A6

Accessibility & contrast

On white

2.32
#40C251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.05
#40C251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C251
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C251#FFFFFF#000000##000000
##40C2511.002.329.059.05
#FFFFFF2.321.0021.0021.00
#0000009.0521.001.001.00
##0000009.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5B146
Deuteranopia (green-blind)
#B5A65A
Tritanopia (blue-blind)
#16BDA9
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #40c251;
/* rgb */ color: rgb(64, 194, 81);
/* oklch */ color: oklch(71.9% 0.191 145.3);
Tailwind
colors: {
  custom: {
    50: '#85d685',
    500: '#40c251',
    950: '#000000',
  },
}
SCSS
$custom: #40c251;
$custom-light: #85d685;
$custom-dark: #000000;
JSON
{
  "hex": "#40c251",
  "rgb": {
    "r": 64,
    "g": 194,
    "b": 81
  },
  "hsl": {
    "h": 127.846,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.71904,
    "c": 0.19101,
    "h": 145.3
  },
  "luminance": 0.40268
}

Semantic roles & 50–950 ramp

primary
#40C251
secondary
#CC92C4
accent
#4DC8DB
background
#F8FDF8
surface
#F0FAEF
border
#CBD3CA
text
#0C140B
muted
#7D837C

Preview Lab

Preview with #40C251

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

Preview Lab → · Contrast checker → · Palette generator →

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