#BB40C9#BB40C9

#BB40C9 is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.8% C 0.222 H 323.5°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#BB40C9
RGBrgb(187, 64, 201)
HSLhsl(294, 56%, 52%)
HSVhsv(294, 68%, 79%)
CMYKcmyk(7%, 68.2%, 0%, 21.2%)
CIE-LABlab(50.04, 66.31, -47.40)
CIE-LCHlch(50.04, 81.51, 324.44°)
OKLaboklab(59.8% 0.1783 -0.132)
OKLCHoklch(59.8% 0.222 323.5)
XYZxyz(32.8686, 18.4506, 57.0771)
Luminance0.1845 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40C9 #4EC940
analogous
#7740C9 #BB40C9 #C94092
triadic
#BB40C9 #C9BB40 #40C9BB
tetradic
#BB40C9 #C97740 #4EC940 #4092C9
square
#BB40C9 #C97740 #4EC940 #4092C9
split-complementary
#BB40C9 #92C940 #40C977
monochromatic
#671F6F #932D9F #BB40C9 #CC70D6 #DD9FE4

Accessibility & contrast

On white

4.48
#BB40C9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#BB40C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB40C9
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40C9#FFFFFF#000000##000000
##BB40C91.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#196ECD
Deuteranopia (green-blind)
#567CC6
Tritanopia (blue-blind)
#BE5780
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #bb40c9;
/* rgb */ color: rgb(187, 64, 201);
/* oklch */ color: oklch(59.8% 0.222 323.5);
Tailwind
colors: {
  custom: {
    50: '#d37fda',
    500: '#bb40c9',
    950: '#000000',
  },
}
SCSS
$custom: #bb40c9;
$custom-light: #d37fda;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40c9",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 293.869,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59803,
    "c": 0.22186,
    "h": 323.5
  },
  "luminance": 0.18449
}

Semantic roles & 50–950 ramp

primary
#BB40C9
secondary
#9BD094
accent
#DF4958
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BB40C9

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

Preview Lab → · Contrast checker → · Palette generator →

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