#BB40E7#BB40E7

#BB40E7 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.7% C 0.247 H 315.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#BB40E7
RGBrgb(187, 64, 231)
HSLhsl(284, 78%, 58%)
HSVhsv(284, 72%, 91%)
CMYKcmyk(19%, 72.3%, 0%, 9.4%)
CIE-LABlab(51.84, 71.84, -61.61)
CIE-LCHlch(51.84, 94.64, 319.38°)
OKLaboklab(61.67% 0.1763 -0.1736)
OKLCHoklch(61.67% 0.247 315.4)
XYZxyz(36.7484, 20.0025, 77.5109)
Luminance0.2000 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40E7 #6CE740
analogous
#6840E7 #BB40E7 #E740BF
triadic
#BB40E7 #E7BB40 #40E7BB
tetradic
#BB40E7 #E76840 #6CE740 #40BFE7
square
#BB40E7 #E76840 #6CE740 #40BFE7
split-complementary
#BB40E7 #BFE740 #40E768
monochromatic
#761399 #A01AD0 #BB40E7 #CE76EE #E2ADF5

Accessibility & contrast

On white

4.20
#BB40E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#BB40E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB40E7
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40E7#FFFFFF#000000##000000
##BB40E71.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075EC
Deuteranopia (green-blind)
#3C7FE3
Tritanopia (blue-blind)
#B86490
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #bb40e7;
/* rgb */ color: rgb(187, 64, 231);
/* oklch */ color: oklch(61.7% 0.247 315.4);
Tailwind
colors: {
  custom: {
    50: '#d480ef',
    500: '#bb40e7',
    950: '#000000',
  },
}
SCSS
$custom: #bb40e7;
$custom-light: #d480ef;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40e7",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 231
  },
  "hsl": {
    "h": 284.192,
    "s": 77.674,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61666,
    "c": 0.24745,
    "h": 315.4
  },
  "luminance": 0.20001
}

Semantic roles & 50–950 ramp

primary
#BB40E7
secondary
#B2E3A0
accent
#F43466
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B17
muted
#837C85

Preview Lab

Preview with #BB40E7

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

Preview Lab → · Contrast checker → · Palette generator →

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