#BB40B2#BB40B2

#BB40B2 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.5% C 0.203 H 330.9°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#BB40B2
RGBrgb(187, 64, 178)
HSLhsl(304, 49%, 49%)
HSVhsv(304, 66%, 73%)
CMYKcmyk(0%, 65.8%, 4.8%, 26.7%)
CIE-LABlab(48.82, 62.40, -35.97)
CIE-LCHlch(48.82, 72.03, 330.04°)
OKLaboklab(58.53% 0.1776 -0.0989)
OKLCHoklch(58.53% 0.203 330.9)
XYZxyz(30.3627, 17.4482, 43.8795)
Luminance0.1745 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40B2 #40BB49
analogous
#8740BB #BB40B2 #BB4075
triadic
#BB40B2 #B2BB40 #40B2BB
tetradic
#BB40B2 #BB8740 #40BB49 #4075BB
square
#BB40B2 #BB8740 #40BB49 #4075BB
split-complementary
#BB40B2 #75BB40 #40BB87
monochromatic
#60215B #8D3087 #BB40B2 #CD6CC5 #DC99D7

Accessibility & contrast

On white

4.68
#BB40B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#BB40B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40B2
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40B2#FFFFFF#000000##FFFFFF
##BB40B21.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3769B5
Deuteranopia (green-blind)
#637AAF
Tritanopia (blue-blind)
#C24D74
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #bb40b2;
/* rgb */ color: rgb(187, 64, 178);
/* oklch */ color: oklch(58.5% 0.203 330.9);
Tailwind
colors: {
  custom: {
    50: '#d37ec9',
    500: '#bb40b2',
    950: '#000000',
  },
}
SCSS
$custom: #bb40b2;
$custom-light: #d37ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40b2",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 304.39,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58531,
    "c": 0.20323,
    "h": 330.9
  },
  "luminance": 0.17446
}

Semantic roles & 50–950 ramp

primary
#BB40B2
secondary
#8FC893
accent
#D9594F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #BB40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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