#BB40C3#BB40C3

#BB40C3 is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.5% C 0.217 H 325.3°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BB40C3
RGBrgb(187, 64, 195)
HSLhsl(296, 52%, 51%)
HSVhsv(296, 67%, 76%)
CMYKcmyk(4.1%, 67.2%, 0%, 23.5%)
CIE-LABlab(49.71, 65.26, -44.47)
CIE-LCHlch(49.71, 78.97, 325.73°)
OKLaboklab(59.46% 0.1783 -0.1235)
OKLCHoklch(59.46% 0.217 325.3)
XYZxyz(32.1765, 18.1737, 53.4323)
Luminance0.1817 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40C3 #48C340
analogous
#7940C3 #BB40C3 #C34089
triadic
#BB40C3 #C3BB40 #40C3BB
tetradic
#BB40C3 #C37940 #48C340 #4089C3
square
#BB40C3 #C37940 #48C340 #4089C3
split-complementary
#BB40C3 #89C340 #40C379
monochromatic
#642168 #902F97 #BB40C3 #CC6FD2 #DC9DE0

Accessibility & contrast

On white

4.53
#BB40C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#BB40C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB40C3
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40C3#FFFFFF#000000##000000
##BB40C31.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#246CC7
Deuteranopia (green-blind)
#5A7BC0
Tritanopia (blue-blind)
#BF547D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #bb40c3;
/* rgb */ color: rgb(187, 64, 195);
/* oklch */ color: oklch(59.5% 0.217 325.3);
Tailwind
colors: {
  custom: {
    50: '#d37fd6',
    500: '#bb40c3',
    950: '#000000',
  },
}
SCSS
$custom: #bb40c3;
$custom-light: #d37fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40c3",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 296.336,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59458,
    "c": 0.21688,
    "h": 325.3
  },
  "luminance": 0.18172
}

Semantic roles & 50–950 ramp

primary
#BB40C3
secondary
#96CC92
accent
#DC4C55
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BB40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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