#BB40B3#BB40B3

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

Color values

HEX#BB40B3
RGBrgb(187, 64, 179)
HSLhsl(304, 49%, 49%)
HSVhsv(304, 66%, 73%)
CMYKcmyk(0%, 65.8%, 4.3%, 26.7%)
CIE-LABlab(48.87, 62.57, -36.48)
CIE-LCHlch(48.87, 72.42, 329.76°)
OKLaboklab(58.58% 0.1776 -0.1003)
OKLCHoklch(58.58% 0.204 330.5)
XYZxyz(30.4635, 17.4885, 44.4102)
Luminance0.1749 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40B3 #40BB48
analogous
#8540BB #BB40B3 #BB4076
triadic
#BB40B3 #B3BB40 #40B3BB
tetradic
#BB40B3 #BB8540 #40BB48 #4076BB
square
#BB40B3 #BB8540 #40BB48 #4076BB
split-complementary
#BB40B3 #76BB40 #40BB85
monochromatic
#60215C #8D3087 #BB40B3 #CD6CC6 #DC99D8

Accessibility & contrast

On white

4.67
#BB40B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#BB40B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40B3
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40B3#FFFFFF#000000##FFFFFF
##BB40B31.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3669B6
Deuteranopia (green-blind)
#637AB0
Tritanopia (blue-blind)
#C24E74
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #bb40b3;
/* rgb */ color: rgb(187, 64, 179);
/* oklch */ color: oklch(58.6% 0.204 330.5);
Tailwind
colors: {
  custom: {
    50: '#d37eca',
    500: '#bb40b3',
    950: '#000000',
  },
}
SCSS
$custom: #bb40b3;
$custom-light: #d37eca;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40b3",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 303.902,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58583,
    "c": 0.204,
    "h": 330.5
  },
  "luminance": 0.17486
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BB40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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