#BB40C6#BB40C6

#BB40C6 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.6% C 0.219 H 324.4°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#BB40C6
RGBrgb(187, 64, 198)
HSLhsl(295, 54%, 51%)
HSVhsv(295, 68%, 78%)
CMYKcmyk(5.6%, 67.7%, 0%, 22.4%)
CIE-LABlab(49.87, 65.78, -45.94)
CIE-LCHlch(49.87, 80.23, 325.07°)
OKLaboklab(59.63% 0.1783 -0.1278)
OKLCHoklch(59.63% 0.219 324.4)
XYZxyz(32.5191, 18.3108, 55.2366)
Luminance0.1831 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40C6 #4BC640
analogous
#7840C6 #BB40C6 #C6408E
triadic
#BB40C6 #C6BB40 #40C6BB
tetradic
#BB40C6 #C67840 #4BC640 #408EC6
square
#BB40C6 #C67840 #4BC640 #408EC6
split-complementary
#BB40C6 #8EC640 #40C678
monochromatic
#65206C #922E9B #BB40C6 #CC6FD4 #DD9EE2

Accessibility & contrast

On white

4.50
#BB40C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#BB40C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB40C6
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40C6#FFFFFF#000000##000000
##BB40C61.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F6DCA
Deuteranopia (green-blind)
#587CC3
Tritanopia (blue-blind)
#BF567E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #bb40c6;
/* rgb */ color: rgb(187, 64, 198);
/* oklch */ color: oklch(59.6% 0.219 324.4);
Tailwind
colors: {
  custom: {
    50: '#d37fd8',
    500: '#bb40c6',
    950: '#000000',
  },
}
SCSS
$custom: #bb40c6;
$custom-light: #d37fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40c6",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 295.075,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.59629,
    "c": 0.21936,
    "h": 324.4
  },
  "luminance": 0.18309
}

Semantic roles & 50–950 ramp

primary
#BB40C6
secondary
#98CE93
accent
#DD4A56
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BB40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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