#40C238#40C238

#40C238 is a light, highly saturated green. Relative luminance 0.400; OKLCH L 71.7% C 0.209 H 142.3°. Best body text is #000000 at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#40C238
RGBrgb(64, 194, 56)
HSLhsl(117, 55%, 49%)
HSVhsv(117, 71%, 76%)
CMYKcmyk(67%, 0%, 71.1%, 23.9%)
CIE-LABlab(69.44, -60.72, 56.22)
CIE-LCHlch(69.44, 82.75, 137.21°)
OKLaboklab(71.65% -0.1653 0.1279)
OKLCHoklch(71.65% 0.209 142.3)
XYZxyz(22.1187, 39.9568, 10.2874)
Luminance0.3996 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C238 #BA38C2
analogous
#85C238 #40C238 #38C275
triadic
#40C238 #3840C2 #C23840
tetradic
#40C238 #3885C2 #BA38C2 #C27538
square
#40C238 #3885C2 #BA38C2 #C27538
split-complementary
#40C238 #7538C2 #C23885
monochromatic
#21631D #30932A #40C238 #6BD265 #99E094

Accessibility & contrast

On white

2.34
#40C238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.99
#40C238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C238
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C238#FFFFFF#000000##000000
##40C2381.002.348.998.99
#FFFFFF2.341.0021.0021.00
#0000008.9921.001.001.00
##0000008.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B021
Deuteranopia (green-blind)
#B7A646
Tritanopia (blue-blind)
#22BCA7
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #40c238;
/* rgb */ color: rgb(64, 194, 56);
/* oklch */ color: oklch(71.7% 0.209 142.3);
Tailwind
colors: {
  custom: {
    50: '#86d676',
    500: '#40c238',
    950: '#000000',
  },
}
SCSS
$custom: #40c238;
$custom-light: #86d676;
$custom-dark: #000000;
JSON
{
  "hex": "#40c238",
  "rgb": {
    "r": 64,
    "g": 194,
    "b": 56
  },
  "hsl": {
    "h": 116.522,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.71652,
    "c": 0.20901,
    "h": 142.3
  },
  "luminance": 0.39959
}

Semantic roles & 50–950 ramp

primary
#40C238
secondary
#C88ACB
accent
#49DFD6
background
#F8FDF7
surface
#F0FAED
border
#CBD3C8
text
#0D1409
muted
#7D837B

Preview Lab

Preview with #40C238

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

Preview Lab → · Contrast checker → · Palette generator →

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