#BB40C2#BB40C2

#BB40C2 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.4% C 0.216 H 325.6°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BB40C2
RGBrgb(187, 64, 194)
HSLhsl(297, 52%, 51%)
HSVhsv(297, 67%, 76%)
CMYKcmyk(3.6%, 67%, 0%, 23.9%)
CIE-LABlab(49.65, 65.08, -43.97)
CIE-LCHlch(49.65, 78.55, 325.96°)
OKLaboklab(59.4% 0.1783 -0.1221)
OKLCHoklch(59.4% 0.216 325.6)
XYZxyz(32.0638, 18.1287, 52.8388)
Luminance0.1813 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40C2 #47C240
analogous
#7A40C2 #BB40C2 #C24088
triadic
#BB40C2 #C2BB40 #40C2BB
tetradic
#BB40C2 #C27A40 #47C240 #4088C2
square
#BB40C2 #C27A40 #47C240 #4088C2
split-complementary
#BB40C2 #88C240 #40C27A
monochromatic
#632167 #903095 #BB40C2 #CC6ED1 #DC9DE0

Accessibility & contrast

On white

4.54
#BB40C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##BB40C2#FFFFFF#000000##000000
##BB40C21.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#266CC6
Deuteranopia (green-blind)
#5B7BBF
Tritanopia (blue-blind)
#BF547C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #bb40c2;
/* rgb */ color: rgb(187, 64, 194);
/* oklch */ color: oklch(59.4% 0.216 325.6);
Tailwind
colors: {
  custom: {
    50: '#d37fd5',
    500: '#bb40c2',
    950: '#000000',
  },
}
SCSS
$custom: #bb40c2;
$custom-light: #d37fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40c2",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 296.769,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59401,
    "c": 0.21606,
    "h": 325.6
  },
  "luminance": 0.18127
}

Semantic roles & 50–950 ramp

primary
#BB40C2
secondary
#95CC92
accent
#DB4D54
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BB40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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