#BB40C4#BB40C4

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

Color values

HEX#BB40C4
RGBrgb(187, 64, 196)
HSLhsl(296, 53%, 51%)
HSVhsv(296, 67%, 77%)
CMYKcmyk(4.6%, 67.3%, 0%, 23.1%)
CIE-LABlab(49.76, 65.43, -44.96)
CIE-LCHlch(49.76, 79.39, 325.51°)
OKLaboklab(59.51% 0.1783 -0.1249)
OKLCHoklch(59.51% 0.218 325)
XYZxyz(32.2899, 18.2191, 54.0297)
Luminance0.1822 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40C4 #49C440
analogous
#7940C4 #BB40C4 #C4408B
triadic
#BB40C4 #C4BB40 #40C4BB
tetradic
#BB40C4 #C47940 #49C440 #408BC4
square
#BB40C4 #C47940 #49C440 #408BC4
split-complementary
#BB40C4 #8BC440 #40C479
monochromatic
#642069 #912F98 #BB40C4 #CC6FD2 #DC9EE1

Accessibility & contrast

On white

4.52
#BB40C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#BB40C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB40C4
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40C4#FFFFFF#000000##000000
##BB40C41.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#236DC8
Deuteranopia (green-blind)
#597CC1
Tritanopia (blue-blind)
#BF557D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #bb40c4;
/* rgb */ color: rgb(187, 64, 196);
/* oklch */ color: oklch(59.5% 0.218 325.0);
Tailwind
colors: {
  custom: {
    50: '#d37fd6',
    500: '#bb40c4',
    950: '#000000',
  },
}
SCSS
$custom: #bb40c4;
$custom-light: #d37fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40c4",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 295.909,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.59515,
    "c": 0.21771,
    "h": 325
  },
  "luminance": 0.18217
}

Semantic roles & 50–950 ramp

primary
#BB40C4
secondary
#97CD93
accent
#DC4C55
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BB40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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