#BF31B5#BF31B5

#BF31B5 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.9% C 0.225 H 331.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#BF31B5
RGBrgb(191, 49, 181)
HSLhsl(304, 59%, 47%)
HSVhsv(304, 74%, 75%)
CMYKcmyk(0%, 74.3%, 5.2%, 25.1%)
CIE-LABlab(47.77, 69.04, -39.35)
CIE-LCHlch(47.77, 79.46, 330.32°)
OKLaboklab(57.95% 0.197 -0.1084)
OKLCHoklch(57.95% 0.225 331.2)
XYZxyz(30.9246, 16.6117, 45.2847)
Luminance0.1661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BF31B5 #31BF3B
analogous
#8231BF #BF31B5 #BF316E
triadic
#BF31B5 #B5BF31 #31B5BF
tetradic
#BF31B5 #BF8231 #31BF3B #316EBF
square
#BF31B5 #BF8231 #31BF3B #316EBF
split-complementary
#BF31B5 #6EBF31 #31BF82
monochromatic
#5E1859 #8E2587 #BF31B5 #D459CC #E18ADB

Accessibility & contrast

On white

4.86
#BF31B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#BF31B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BF31B5
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BF31B5#FFFFFF#000000##FFFFFF
##BF31B51.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2365B9
Deuteranopia (green-blind)
#5E78B2
Tritanopia (blue-blind)
#C74371
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #bf31b5;
/* rgb */ color: rgb(191, 49, 181);
/* oklch */ color: oklch(57.9% 0.225 331.2);
Tailwind
colors: {
  custom: {
    50: '#d678cb',
    500: '#bf31b5',
    950: '#000000',
  },
}
SCSS
$custom: #bf31b5;
$custom-light: #d678cb;
$custom-dark: #000000;
JSON
{
  "hex": "#bf31b5",
  "rgb": {
    "r": 191,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 304.225,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57947,
    "c": 0.22486,
    "h": 331.2
  },
  "luminance": 0.16609
}

Semantic roles & 50–950 ramp

primary
#BF31B5
secondary
#81CB86
accent
#E25045
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BF31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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