#BB40C5#BB40C5

#BB40C5 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.6% C 0.219 H 324.7°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#BB40C5
RGBrgb(187, 64, 197)
HSLhsl(295, 53%, 51%)
HSVhsv(295, 68%, 77%)
CMYKcmyk(5.1%, 67.5%, 0%, 22.7%)
CIE-LABlab(49.82, 65.61, -45.45)
CIE-LCHlch(49.82, 79.81, 325.29°)
OKLaboklab(59.57% 0.1783 -0.1263)
OKLCHoklch(59.57% 0.219 324.7)
XYZxyz(32.4041, 18.2648, 54.6312)
Luminance0.1826 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40C5 #4AC540
analogous
#7840C5 #BB40C5 #C5408C
triadic
#BB40C5 #C5BB40 #40C5BB
tetradic
#BB40C5 #C57840 #4AC540 #408CC5
square
#BB40C5 #C57840 #4AC540 #408CC5
split-complementary
#BB40C5 #8CC540 #40C578
monochromatic
#65206A #912F99 #BB40C5 #CC6FD3 #DC9EE2

Accessibility & contrast

On white

4.51
#BB40C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#BB40C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB40C5
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40C5#FFFFFF#000000##000000
##BB40C51.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#216DC9
Deuteranopia (green-blind)
#597CC2
Tritanopia (blue-blind)
#BF557E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #bb40c5;
/* rgb */ color: rgb(187, 64, 197);
/* oklch */ color: oklch(59.6% 0.219 324.7);
Tailwind
colors: {
  custom: {
    50: '#d37fd7',
    500: '#bb40c5',
    950: '#000000',
  },
}
SCSS
$custom: #bb40c5;
$custom-light: #d37fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40c5",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 295.489,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59572,
    "c": 0.21853,
    "h": 324.7
  },
  "luminance": 0.18263
}

Semantic roles & 50–950 ramp

primary
#BB40C5
secondary
#97CE93
accent
#DD4B56
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BB40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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