#40B238#40B238

#40B238 is a light, vivid green. Relative luminance 0.332; OKLCH L 67.4% C 0.190 H 142.2°. Best body text is #000000 at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#40B238
RGBrgb(64, 178, 56)
HSLhsl(116, 52%, 46%)
HSVhsv(116, 69%, 70%)
CMYKcmyk(64%, 0%, 68.5%, 30.2%)
CIE-LABlab(64.33, -55.22, 50.86)
CIE-LCHlch(64.33, 75.07, 137.35°)
OKLaboklab(67.43% -0.1504 0.1167)
OKLCHoklch(67.43% 0.19 142.2)
XYZxyz(18.7475, 33.2144, 9.1637)
Luminance0.3322 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B238 #AA38B2
analogous
#7DB238 #40B238 #38B26D
triadic
#40B238 #3840B2 #B23840
tetradic
#40B238 #387DB2 #AA38B2 #B26D38
square
#40B238 #387DB2 #AA38B2 #B26D38
split-complementary
#40B238 #6D38B2 #B2387D
monochromatic
#1F551B #2F8329 #40B238 #63CC5C #8FDA8A

Accessibility & contrast

On white

2.75
#40B238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.64
#40B238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B238
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B238#FFFFFF#000000##000000
##40B2381.002.757.647.64
#FFFFFF2.751.0021.0021.00
#0000007.6421.001.001.00
##0000007.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A227
Deuteranopia (green-blind)
#A89843
Tritanopia (blue-blind)
#2AAD99
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #40b238;
/* rgb */ color: rgb(64, 178, 56);
/* oklch */ color: oklch(67.4% 0.190 142.2);
Tailwind
colors: {
  custom: {
    50: '#83ca75',
    500: '#40b238',
    950: '#000000',
  },
}
SCSS
$custom: #40b238;
$custom-light: #83ca75;
$custom-dark: #000000;
JSON
{
  "hex": "#40b238",
  "rgb": {
    "r": 64,
    "g": 178,
    "b": 56
  },
  "hsl": {
    "h": 116.066,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.67425,
    "c": 0.19034,
    "h": 142.2
  },
  "luminance": 0.33216
}

Semantic roles & 50–950 ramp

primary
#40B238
secondary
#C081C5
accent
#4CDCD2
background
#F8FCF7
surface
#F0F8ED
border
#CBD1C8
text
#0C1309
muted
#7D827B

Preview Lab

Preview with #40B238

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

Preview Lab → · Contrast checker → · Palette generator →

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