#40B338#40B338

#40B338 is a light, vivid green. Relative luminance 0.336; OKLCH L 67.7% C 0.192 H 142.2°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#40B338
RGBrgb(64, 179, 56)
HSLhsl(116, 52%, 46%)
HSVhsv(116, 69%, 70%)
CMYKcmyk(64.2%, 0%, 68.7%, 29.8%)
CIE-LABlab(64.65, -55.57, 51.20)
CIE-LCHlch(64.65, 75.56, 137.34°)
OKLaboklab(67.69% -0.1513 0.1174)
OKLCHoklch(67.69% 0.192 142.2)
XYZxyz(18.9472, 33.6138, 9.2302)
Luminance0.3362 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B338 #AB38B3
analogous
#7DB338 #40B338 #38B36D
triadic
#40B338 #3840B3 #B33840
tetradic
#40B338 #387DB3 #AB38B3 #B36D38
square
#40B338 #387DB3 #AB38B3 #B36D38
split-complementary
#40B338 #6D38B3 #B3387D
monochromatic
#1F561B #2F8429 #40B338 #63CC5C #90DB8B

Accessibility & contrast

On white

2.72
#40B338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.72
#40B338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B338
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B338#FFFFFF#000000##000000
##40B3381.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A326
Deuteranopia (green-blind)
#A99944
Tritanopia (blue-blind)
#2AAE9A
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #40b338;
/* rgb */ color: rgb(64, 179, 56);
/* oklch */ color: oklch(67.7% 0.192 142.2);
Tailwind
colors: {
  custom: {
    50: '#83cb75',
    500: '#40b338',
    950: '#000000',
  },
}
SCSS
$custom: #40b338;
$custom-light: #83cb75;
$custom-dark: #000000;
JSON
{
  "hex": "#40b338",
  "rgb": {
    "r": 64,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 116.098,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.67691,
    "c": 0.19154,
    "h": 142.2
  },
  "luminance": 0.33616
}

Semantic roles & 50–950 ramp

primary
#40B338
secondary
#C182C5
accent
#4CDCD2
background
#F8FCF7
surface
#F0F9ED
border
#CBD2C8
text
#0C1309
muted
#7D827B

Preview Lab

Preview with #40B338

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

Preview Lab → · Contrast checker → · Palette generator →

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