#BB40D6#BB40D6

#BB40D6 is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.6% C 0.233 H 319.8°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#BB40D6
RGBrgb(187, 64, 214)
HSLhsl(289, 65%, 55%)
HSVhsv(289, 70%, 84%)
CMYKcmyk(12.6%, 70.1%, 0%, 16.1%)
CIE-LABlab(50.79, 68.65, -53.66)
CIE-LCHlch(50.79, 87.13, 321.99°)
OKLaboklab(60.58% 0.1778 -0.1503)
OKLCHoklch(60.58% 0.233 319.8)
XYZxyz(34.4630, 19.0883, 65.4744)
Luminance0.1909 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40D6 #5BD640
analogous
#7040D6 #BB40D6 #D640A6
triadic
#BB40D6 #D6BB40 #40D6BB
tetradic
#BB40D6 #D67040 #5BD640 #40A6D6
square
#BB40D6 #D67040 #5BD640 #40A6D6
split-complementary
#BB40D6 #A6D640 #40D670
monochromatic
#6E1B80 #9926B2 #BB40D6 #CD72E1 #DFA5EC

Accessibility & contrast

On white

4.36
#BB40D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#BB40D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB40D6
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40D6#FFFFFF#000000##000000
##BB40D61.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DA
Deuteranopia (green-blind)
#4D7DD2
Tritanopia (blue-blind)
#BB5C87
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #bb40d6;
/* rgb */ color: rgb(187, 64, 214);
/* oklch */ color: oklch(60.6% 0.233 319.8);
Tailwind
colors: {
  custom: {
    50: '#d37fe3',
    500: '#bb40d6',
    950: '#000000',
  },
}
SCSS
$custom: #bb40d6;
$custom-light: #d37fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40d6",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 289.2,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.60584,
    "c": 0.23282,
    "h": 319.8
  },
  "luminance": 0.19087
}

Semantic roles & 50–950 ramp

primary
#BB40D6
secondary
#A5D999
accent
#E8405E
background
#FDF8FE
surface
#FBEFFC
border
#D4CAD5
text
#150B15
muted
#837C84

Preview Lab

Preview with #BB40D6

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

Preview Lab → · Contrast checker → · Palette generator →

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