#BB40AF#BB40AF

#BB40AF is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.4% C 0.201 H 331.9°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#BB40AF
RGBrgb(187, 64, 175)
HSLhsl(306, 49%, 49%)
HSVhsv(306, 66%, 73%)
CMYKcmyk(0%, 65.8%, 6.4%, 26.7%)
CIE-LABlab(48.67, 61.92, -34.44)
CIE-LCHlch(48.67, 70.85, 330.91°)
OKLaboklab(58.38% 0.1773 -0.0945)
OKLCHoklch(58.38% 0.201 331.9)
XYZxyz(30.0648, 17.3290, 42.3105)
Luminance0.1733 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40AF #40BB4C
analogous
#8A40BB #BB40AF #BB4072
triadic
#BB40AF #AFBB40 #40AFBB
tetradic
#BB40AF #BB8A40 #40BB4C #4072BB
square
#BB40AF #BB8A40 #40BB4C #4072BB
split-complementary
#BB40AF #72BB40 #40BB8A
monochromatic
#60215A #8D3084 #BB40AF #CD6CC3 #DC99D6

Accessibility & contrast

On white

4.70
#BB40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#BB40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40AF
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40AF#FFFFFF#000000##FFFFFF
##BB40AF1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A68B2
Deuteranopia (green-blind)
#657AAC
Tritanopia (blue-blind)
#C34C72
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #bb40af;
/* rgb */ color: rgb(187, 64, 175);
/* oklch */ color: oklch(58.4% 0.201 331.9);
Tailwind
colors: {
  custom: {
    50: '#d37ec7',
    500: '#bb40af',
    950: '#000000',
  },
}
SCSS
$custom: #bb40af;
$custom-light: #d37ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40af",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 305.854,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58376,
    "c": 0.2009,
    "h": 331.9
  },
  "luminance": 0.17327
}

Semantic roles & 50–950 ramp

primary
#BB40AF
secondary
#8FC894
accent
#D95D4F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #BB40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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