#40B255#40B255

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

Color values

HEX#40B255
RGBrgb(64, 178, 85)
HSLhsl(131, 47%, 47%)
HSVhsv(131, 64%, 70%)
CMYKcmyk(64%, 0%, 52.2%, 30.2%)
CIE-LABlab(64.63, -51.78, 37.98)
CIE-LCHlch(64.63, 64.22, 143.74°)
OKLaboklab(67.77% -0.1399 0.0915)
OKLCHoklch(67.77% 0.167 146.8)
XYZxyz(19.6731, 33.5847, 14.0383)
Luminance0.3359 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B255 #B2409D
analogous
#64B240 #40B255 #40B28E
triadic
#40B255 #5540B2 #B25540
tetradic
#40B255 #4064B2 #B2409D #B28E40
square
#40B255 #4064B2 #B2409D #B28E40
split-complementary
#40B255 #8E40B2 #B24064
monochromatic
#20582A #308540 #40B255 #67C879 #94D8A1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40B255#FFFFFF#000000##000000
##40B2551.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)
#B4A34D
Deuteranopia (green-blind)
#A6995C
Tritanopia (blue-blind)
#1FAE9D
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #40b255;
/* rgb */ color: rgb(64, 178, 85);
/* oklch */ color: oklch(67.8% 0.167 146.8);
Tailwind
colors: {
  custom: {
    50: '#82ca87',
    500: '#40b255',
    950: '#000000',
  },
}
SCSS
$custom: #40b255;
$custom-light: #82ca87;
$custom-dark: #000000;
JSON
{
  "hex": "#40b255",
  "rgb": {
    "r": 64,
    "g": 178,
    "b": 85
  },
  "hsl": {
    "h": 131.053,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.67767,
    "c": 0.16713,
    "h": 146.8
  },
  "luminance": 0.33587
}

Semantic roles & 50–950 ramp

primary
#40B255
secondary
#C48AB9
accent
#51BED7
background
#F8FCF8
surface
#F0F8F0
border
#CBD1CB
text
#0B130B
muted
#7C827C

Preview Lab

Preview with #40B255

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

Preview Lab → · Contrast checker → · Palette generator →

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