#BF31A1#BF31A1

#BF31A1 is a mid, highly saturated pink. Relative luminance 0.158; OKLCH L 56.9% C 0.211 H 338.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#BF31A1
RGBrgb(191, 49, 161)
HSLhsl(313, 59%, 47%)
HSVhsv(313, 74%, 75%)
CMYKcmyk(0%, 74.3%, 15.7%, 25.1%)
CIE-LABlab(46.78, 66.09, -29.09)
CIE-LCHlch(46.78, 72.21, 336.25°)
OKLaboklab(56.91% 0.1956 -0.079)
OKLCHoklch(56.91% 0.211 338)
XYZxyz(29.0178, 15.8490, 35.2422)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BF31A1 #31BF4F
analogous
#9631BF #BF31A1 #BF315A
triadic
#BF31A1 #A1BF31 #31A1BF
tetradic
#BF31A1 #BF9631 #31BF4F #315ABF
square
#BF31A1 #BF9631 #31BF4F #315ABF
split-complementary
#BF31A1 #5ABF31 #31BF96
monochromatic
#5E184F #8E2578 #BF31A1 #D459BA #E18ACE

Accessibility & contrast

On white

5.04
#BF31A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#BF31A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BF31A1
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BF31A1#FFFFFF#000000##FFFFFF
##BF31A11.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A4
Deuteranopia (green-blind)
#67779E
Tritanopia (blue-blind)
#CA3966
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #bf31a1;
/* rgb */ color: rgb(191, 49, 161);
/* oklch */ color: oklch(56.9% 0.211 338.0);
Tailwind
colors: {
  custom: {
    50: '#d677bd',
    500: '#bf31a1',
    950: '#000000',
  },
}
SCSS
$custom: #bf31a1;
$custom-light: #d677bd;
$custom-dark: #000000;
JSON
{
  "hex": "#bf31a1",
  "rgb": {
    "r": 191,
    "g": 49,
    "b": 161
  },
  "hsl": {
    "h": 312.676,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56912,
    "c": 0.21092,
    "h": 338
  },
  "luminance": 0.15846
}

Semantic roles & 50–950 ramp

primary
#BF31A1
secondary
#81CB91
accent
#E26745
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BF31A1

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

Preview Lab → · Contrast checker → · Palette generator →

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