#BB40E3#BB40E3

#BB40E3 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.4% C 0.244 H 316.4°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#BB40E3
RGBrgb(187, 64, 227)
HSLhsl(285, 74%, 57%)
HSVhsv(285, 72%, 89%)
CMYKcmyk(17.6%, 71.8%, 0%, 11%)
CIE-LABlab(51.59, 71.08, -59.76)
CIE-LCHlch(51.59, 92.86, 319.94°)
OKLaboklab(61.41% 0.1768 -0.1682)
OKLCHoklch(61.41% 0.244 316.4)
XYZxyz(36.1899, 19.7791, 74.5696)
Luminance0.1978 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40E3 #68E340
analogous
#6A40E3 #BB40E3 #E340BA
triadic
#BB40E3 #E3BB40 #40E3BB
tetradic
#BB40E3 #E36A40 #68E340 #40BAE3
square
#BB40E3 #E36A40 #68E340 #40BAE3
split-complementary
#BB40E3 #BAE340 #40E36A
monochromatic
#741693 #9E1DC8 #BB40E3 #CE75EB #E1ABF3

Accessibility & contrast

On white

4.24
#BB40E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#BB40E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB40E3
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40E3#FFFFFF#000000##000000
##BB40E31.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E8
Deuteranopia (green-blind)
#407EDF
Tritanopia (blue-blind)
#B9628E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #bb40e3;
/* rgb */ color: rgb(187, 64, 227);
/* oklch */ color: oklch(61.4% 0.244 316.4);
Tailwind
colors: {
  custom: {
    50: '#d480ed',
    500: '#bb40e3',
    950: '#000000',
  },
}
SCSS
$custom: #bb40e3;
$custom-light: #d480ed;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40e3",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 285.276,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61406,
    "c": 0.24398,
    "h": 316.4
  },
  "luminance": 0.19778
}

Semantic roles & 50–950 ramp

primary
#BB40E3
secondary
#AFE19E
accent
#F13764
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BB40E3

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

Preview Lab → · Contrast checker → · Palette generator →

#BB40E3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva