#BB40B5#BB40B5

#BB40B5 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.7% C 0.206 H 329.8°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#BB40B5
RGBrgb(187, 64, 181)
HSLhsl(303, 49%, 49%)
HSVhsv(303, 66%, 73%)
CMYKcmyk(0%, 65.8%, 3.2%, 26.7%)
CIE-LABlab(48.97, 62.89, -37.49)
CIE-LCHlch(48.97, 73.22, 329.20°)
OKLaboklab(58.69% 0.1778 -0.1033)
OKLCHoklch(58.69% 0.206 329.8)
XYZxyz(30.6672, 17.5700, 45.4832)
Luminance0.1757 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40B5 #40BB46
analogous
#8440BB #BB40B5 #BB4078
triadic
#BB40B5 #B5BB40 #40B5BB
tetradic
#BB40B5 #BB8440 #40BB46 #4078BB
square
#BB40B5 #BB8440 #40BB46 #4078BB
split-complementary
#BB40B5 #78BB40 #40BB84
monochromatic
#60215D #8D3089 #BB40B5 #CD6CC8 #DC99D9

Accessibility & contrast

On white

4.65
#BB40B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#BB40B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40B5
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40B5#FFFFFF#000000##FFFFFF
##BB40B51.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#356AB8
Deuteranopia (green-blind)
#627AB2
Tritanopia (blue-blind)
#C24E75
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #bb40b5;
/* rgb */ color: rgb(187, 64, 181);
/* oklch */ color: oklch(58.7% 0.206 329.8);
Tailwind
colors: {
  custom: {
    50: '#d37ecb',
    500: '#bb40b5',
    950: '#000000',
  },
}
SCSS
$custom: #bb40b5;
$custom-light: #d37ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40b5",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 302.927,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58689,
    "c": 0.20558,
    "h": 329.8
  },
  "luminance": 0.17568
}

Semantic roles & 50–950 ramp

primary
#BB40B5
secondary
#8FC892
accent
#D9564F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #BB40B5

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

Preview Lab → · Contrast checker → · Palette generator →

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