#40A338#40A338

#40A338 is a light, vivid green. Relative luminance 0.276; OKLCH L 63.4% C 0.172 H 142.1°. Best body text is #000000 at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#40A338
RGBrgb(64, 163, 56)
HSLhsl(116, 49%, 43%)
HSVhsv(116, 66%, 64%)
CMYKcmyk(60.7%, 0%, 65.6%, 36.1%)
CIE-LABlab(59.50, -49.77, 45.63)
CIE-LCHlch(59.50, 67.52, 137.49°)
OKLaboklab(63.43% -0.1356 0.1057)
OKLCHoklch(63.43% 0.172 142.1)
XYZxyz(15.9245, 27.5684, 8.2227)
Luminance0.2757 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A338 #9B38A3
analogous
#75A338 #40A338 #38A365
triadic
#40A338 #3840A3 #A33840
tetradic
#40A338 #3875A3 #9B38A3 #A36538
square
#40A338 #3875A3 #9B38A3 #A36538
split-complementary
#40A338 #6538A3 #A33875
monochromatic
#1C4819 #2E7528 #40A338 #5CC454 #88D482

Accessibility & contrast

On white

3.22
#40A338 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.51
#40A338 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A338
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A338#FFFFFF#000000##000000
##40A3381.003.226.516.51
#FFFFFF3.221.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A7942B
Deuteranopia (green-blind)
#9A8C41
Tritanopia (blue-blind)
#309E8D
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #40a338;
/* rgb */ color: rgb(64, 163, 56);
/* oklch */ color: oklch(63.4% 0.172 142.1);
Tailwind
colors: {
  custom: {
    50: '#80bf73',
    500: '#40a338',
    950: '#000000',
  },
}
SCSS
$custom: #40a338;
$custom-light: #80bf73;
$custom-dark: #000000;
JSON
{
  "hex": "#40a338",
  "rgb": {
    "r": 64,
    "g": 163,
    "b": 56
  },
  "hsl": {
    "h": 115.514,
    "s": 48.858,
    "l": 42.941
  },
  "oklch": {
    "l": 0.63427,
    "c": 0.17193,
    "h": 142.1
  },
  "luminance": 0.2757
}

Semantic roles & 50–950 ramp

primary
#40A338
secondary
#B879BD
accent
#4FD8CE
background
#F8FBF7
surface
#EFF7ED
border
#CAD0C8
text
#0B1208
muted
#7C817B

Preview Lab

Preview with #40A338

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

Preview Lab → · Contrast checker → · Palette generator →

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