#BB40B4#BB40B4

#BB40B4 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.6% C 0.205 H 330.2°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#BB40B4
RGBrgb(187, 64, 180)
HSLhsl(303, 49%, 49%)
HSVhsv(303, 66%, 73%)
CMYKcmyk(0%, 65.8%, 3.7%, 26.7%)
CIE-LABlab(48.92, 62.73, -36.98)
CIE-LCHlch(48.92, 72.82, 329.48°)
OKLaboklab(58.64% 0.1777 -0.1018)
OKLCHoklch(58.64% 0.205 330.2)
XYZxyz(30.5650, 17.5291, 44.9448)
Luminance0.1753 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40B4 #40BB47
analogous
#8540BB #BB40B4 #BB4077
triadic
#BB40B4 #B4BB40 #40B4BB
tetradic
#BB40B4 #BB8540 #40BB47 #4077BB
square
#BB40B4 #BB8540 #40BB47 #4077BB
split-complementary
#BB40B4 #77BB40 #40BB85
monochromatic
#60215C #8D3088 #BB40B4 #CD6CC7 #DC99D8

Accessibility & contrast

On white

4.66
#BB40B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BB40B4
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40B4#FFFFFF#000000##FFFFFF
##BB40B41.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3569B7
Deuteranopia (green-blind)
#627AB1
Tritanopia (blue-blind)
#C24E75
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #bb40b4;
/* rgb */ color: rgb(187, 64, 180);
/* oklch */ color: oklch(58.6% 0.205 330.2);
Tailwind
colors: {
  custom: {
    50: '#d37ecb',
    500: '#bb40b4',
    950: '#000000',
  },
}
SCSS
$custom: #bb40b4;
$custom-light: #d37ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40b4",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 303.415,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58636,
    "c": 0.20479,
    "h": 330.2
  },
  "luminance": 0.17527
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BB40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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