#BB40C8#BB40C8

#BB40C8 is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.7% C 0.221 H 323.8°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#BB40C8
RGBrgb(187, 64, 200)
HSLhsl(294, 55%, 52%)
HSVhsv(294, 68%, 78%)
CMYKcmyk(6.5%, 68%, 0%, 21.6%)
CIE-LABlab(49.98, 66.13, -46.92)
CIE-LCHlch(49.98, 81.08, 324.65°)
OKLaboklab(59.75% 0.1783 -0.1306)
OKLCHoklch(59.75% 0.221 323.8)
XYZxyz(32.7513, 18.4037, 56.4596)
Luminance0.1840 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40C8 #4DC840
analogous
#7740C8 #BB40C8 #C84091
triadic
#BB40C8 #C8BB40 #40C8BB
tetradic
#BB40C8 #C87740 #4DC840 #4091C8
square
#BB40C8 #C87740 #4DC840 #4091C8
split-complementary
#BB40C8 #91C840 #40C877
monochromatic
#66206E #932D9D #BB40C8 #CC70D6 #DD9FE3

Accessibility & contrast

On white

4.49
#BB40C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#BB40C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB40C8
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40C8#FFFFFF#000000##000000
##BB40C81.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C6ECC
Deuteranopia (green-blind)
#577CC5
Tritanopia (blue-blind)
#BE567F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #bb40c8;
/* rgb */ color: rgb(187, 64, 200);
/* oklch */ color: oklch(59.7% 0.221 323.8);
Tailwind
colors: {
  custom: {
    50: '#d37fd9',
    500: '#bb40c8',
    950: '#000000',
  },
}
SCSS
$custom: #bb40c8;
$custom-light: #d37fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40c8",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 294.265,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59745,
    "c": 0.22103,
    "h": 323.8
  },
  "luminance": 0.18402
}

Semantic roles & 50–950 ramp

primary
#BB40C8
secondary
#9AD094
accent
#DF4957
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B15
muted
#837C83

Preview Lab

Preview with #BB40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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