#BB40D5#BB40D5

#BB40D5 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.5% C 0.232 H 320.1°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#BB40D5
RGBrgb(187, 64, 213)
HSLhsl(290, 64%, 54%)
HSVhsv(290, 70%, 84%)
CMYKcmyk(12.2%, 70%, 0%, 16.5%)
CIE-LABlab(50.73, 68.47, -53.18)
CIE-LCHlch(50.73, 86.69, 322.16°)
OKLaboklab(60.52% 0.1779 -0.1489)
OKLCHoklch(60.52% 0.232 320.1)
XYZxyz(34.3357, 19.0374, 64.8039)
Luminance0.1904 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40D5 #5AD540
analogous
#7140D5 #BB40D5 #D540A5
triadic
#BB40D5 #D5BB40 #40D5BB
tetradic
#BB40D5 #D57140 #5AD540 #40A5D5
square
#BB40D5 #D57140 #5AD540 #40A5D5
split-complementary
#BB40D5 #A5D540 #40D571
monochromatic
#6D1C7F #9927B1 #BB40D5 #CD72E0 #DFA4EB

Accessibility & contrast

On white

4.37
#BB40D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#BB40D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB40D5
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40D5#FFFFFF#000000##000000
##BB40D51.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070D9
Deuteranopia (green-blind)
#4D7DD1
Tritanopia (blue-blind)
#BC5C86
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #bb40d5;
/* rgb */ color: rgb(187, 64, 213);
/* oklch */ color: oklch(60.5% 0.232 320.1);
Tailwind
colors: {
  custom: {
    50: '#d37fe3',
    500: '#bb40d5',
    950: '#000000',
  },
}
SCSS
$custom: #bb40d5;
$custom-light: #d37fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40d5",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 289.53,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.60522,
    "c": 0.23197,
    "h": 320.1
  },
  "luminance": 0.19036
}

Semantic roles & 50–950 ramp

primary
#BB40D5
secondary
#A4D899
accent
#E7415E
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BB40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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