#BB40C1#BB40C1

#BB40C1 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.3% C 0.215 H 325.9°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#BB40C1
RGBrgb(187, 64, 193)
HSLhsl(297, 51%, 50%)
HSVhsv(297, 67%, 76%)
CMYKcmyk(3.1%, 66.8%, 0%, 24.3%)
CIE-LABlab(49.60, 64.91, -43.48)
CIE-LCHlch(49.60, 78.13, 326.18°)
OKLaboklab(59.35% 0.1783 -0.1206)
OKLCHoklch(59.35% 0.215 325.9)
XYZxyz(31.9519, 18.0839, 52.2493)
Luminance0.1808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40C1 #46C140
analogous
#7A40C1 #BB40C1 #C14087
triadic
#BB40C1 #C1BB40 #40C1BB
tetradic
#BB40C1 #C17A40 #46C140 #4087C1
square
#BB40C1 #C17A40 #46C140 #4087C1
split-complementary
#BB40C1 #87C140 #40C17A
monochromatic
#622166 #8F3094 #BB40C1 #CB6ED0 #DC9CDF

Accessibility & contrast

On white

4.55
#BB40C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#BB40C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB40C1
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40C1#FFFFFF#000000##000000
##BB40C11.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#276CC5
Deuteranopia (green-blind)
#5B7BBE
Tritanopia (blue-blind)
#C0537C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #bb40c1;
/* rgb */ color: rgb(187, 64, 193);
/* oklch */ color: oklch(59.3% 0.215 325.9);
Tailwind
colors: {
  custom: {
    50: '#d37fd4',
    500: '#bb40c1',
    950: '#000000',
  },
}
SCSS
$custom: #bb40c1;
$custom-light: #d37fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40c1",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 297.209,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.59345,
    "c": 0.21524,
    "h": 325.9
  },
  "luminance": 0.18082
}

Semantic roles & 50–950 ramp

primary
#BB40C1
secondary
#94CB92
accent
#DA4D54
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BB40C1

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

Preview Lab → · Contrast checker → · Palette generator →

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