#40C258#40C258

#40C258 is a light, vivid green. Relative luminance 0.404; OKLCH L 72.0% C 0.185 H 146.5°. Best body text is #000000 at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#40C258
RGBrgb(64, 194, 88)
HSLhsl(131, 52%, 51%)
HSVhsv(131, 67%, 76%)
CMYKcmyk(67%, 0%, 54.6%, 23.9%)
CIE-LABlab(69.74, -57.23, 42.72)
CIE-LCHlch(69.74, 71.41, 143.26°)
OKLaboklab(71.99% -0.1544 0.1022)
OKLCHoklch(71.99% 0.185 146.5)
XYZxyz(23.1660, 40.3757, 15.8031)
Luminance0.4038 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C258 #C240AA
analogous
#69C240 #40C258 #40C299
triadic
#40C258 #5840C2 #C25840
tetradic
#40C258 #4069C2 #C240AA #C29940
square
#40C258 #4069C2 #C240AA #C29940
split-complementary
#40C258 #9940C2 #C24069
monochromatic
#21672E #309542 #40C258 #6ED181 #9DE0A9

Accessibility & contrast

On white

2.31
#40C258 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.08
#40C258 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C258
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C258#FFFFFF#000000##000000
##40C2581.002.319.089.08
#FFFFFF2.311.0021.0021.00
#0000009.0821.001.001.00
##0000009.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5B14E
Deuteranopia (green-blind)
#B5A660
Tritanopia (blue-blind)
#11BEAA
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #40c258;
/* rgb */ color: rgb(64, 194, 88);
/* oklch */ color: oklch(72.0% 0.185 146.5);
Tailwind
colors: {
  custom: {
    50: '#85d58a',
    500: '#40c258',
    950: '#000000',
  },
}
SCSS
$custom: #40c258;
$custom-light: #85d58a;
$custom-dark: #000000;
JSON
{
  "hex": "#40c258",
  "rgb": {
    "r": 64,
    "g": 194,
    "b": 88
  },
  "hsl": {
    "h": 131.077,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.71994,
    "c": 0.18517,
    "h": 146.5
  },
  "luminance": 0.40378
}

Semantic roles & 50–950 ramp

primary
#40C258
secondary
#CC92C1
accent
#4DC1DB
background
#F8FDF8
surface
#F0FAF0
border
#CBD3CB
text
#0C140C
muted
#7D837D

Preview Lab

Preview with #40C258

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

Preview Lab → · Contrast checker → · Palette generator →

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