#BB40C7#BB40C7

#BB40C7 is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.7% C 0.220 H 324.1°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#BB40C7
RGBrgb(187, 64, 199)
HSLhsl(295, 55%, 52%)
HSVhsv(295, 68%, 78%)
CMYKcmyk(6%, 67.8%, 0%, 22%)
CIE-LABlab(49.93, 65.95, -46.43)
CIE-LCHlch(49.93, 80.66, 324.86°)
OKLaboklab(59.69% 0.1783 -0.1292)
OKLCHoklch(59.69% 0.22 324.1)
XYZxyz(32.6348, 18.3571, 55.8461)
Luminance0.1835 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40C7 #4CC740
analogous
#7840C7 #BB40C7 #C74090
triadic
#BB40C7 #C7BB40 #40C7BB
tetradic
#BB40C7 #C77840 #4CC740 #4090C7
square
#BB40C7 #C77840 #4CC740 #4090C7
split-complementary
#BB40C7 #90C740 #40C778
monochromatic
#66206D #922E9C #BB40C7 #CC6FD5 #DD9FE3

Accessibility & contrast

On white

4.50
#BB40C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#BB40C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB40C7
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40C7#FFFFFF#000000##000000
##BB40C71.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E6DCB
Deuteranopia (green-blind)
#587CC4
Tritanopia (blue-blind)
#BE567F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #bb40c7;
/* rgb */ color: rgb(187, 64, 199);
/* oklch */ color: oklch(59.7% 0.220 324.1);
Tailwind
colors: {
  custom: {
    50: '#d37fd8',
    500: '#bb40c7',
    950: '#000000',
  },
}
SCSS
$custom: #bb40c7;
$custom-light: #d37fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40c7",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 294.667,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.59687,
    "c": 0.22018,
    "h": 324.1
  },
  "luminance": 0.18355
}

Semantic roles & 50–950 ramp

primary
#BB40C7
secondary
#99CF94
accent
#DE4A57
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BB40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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