#BF31AB#BF31AB

#BF31AB is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.4% C 0.218 H 334.5°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#BF31AB
RGBrgb(191, 49, 171)
HSLhsl(308, 59%, 47%)
HSVhsv(308, 74%, 75%)
CMYKcmyk(0%, 74.3%, 10.5%, 25.1%)
CIE-LABlab(47.26, 67.53, -34.26)
CIE-LCHlch(47.26, 75.73, 333.10°)
OKLaboklab(57.42% 0.1965 -0.0938)
OKLCHoklch(57.42% 0.218 334.5)
XYZxyz(29.9352, 16.2159, 40.0736)
Luminance0.1621 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BF31AB #31BF45
analogous
#8C31BF #BF31AB #BF3164
triadic
#BF31AB #ABBF31 #31ABBF
tetradic
#BF31AB #BF8C31 #31BF45 #3164BF
square
#BF31AB #BF8C31 #31BF45 #3164BF
split-complementary
#BF31AB #64BF31 #31BF8C
monochromatic
#5E1854 #8E257F #BF31AB #D459C3 #E18AD5

Accessibility & contrast

On white

4.95
#BF31AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#BF31AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BF31AB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BF31AB#FFFFFF#000000##FFFFFF
##BF31AB1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F63AE
Deuteranopia (green-blind)
#6377A8
Tritanopia (blue-blind)
#C83E6B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bf31ab;
/* rgb */ color: rgb(191, 49, 171);
/* oklch */ color: oklch(57.4% 0.218 334.5);
Tailwind
colors: {
  custom: {
    50: '#d678c4',
    500: '#bf31ab',
    950: '#000000',
  },
}
SCSS
$custom: #bf31ab;
$custom-light: #d678c4;
$custom-dark: #000000;
JSON
{
  "hex": "#bf31ab",
  "rgb": {
    "r": 191,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 308.451,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57415,
    "c": 0.21774,
    "h": 334.5
  },
  "luminance": 0.16213
}

Semantic roles & 50–950 ramp

primary
#BF31AB
secondary
#81CB8B
accent
#E25C45
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BF31AB

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

Preview Lab → · Contrast checker → · Palette generator →

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