#BF31A5#BF31A5

#BF31A5 is a mid, highly saturated pink. Relative luminance 0.160; OKLCH L 57.1% C 0.214 H 336.6°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#BF31A5
RGBrgb(191, 49, 165)
HSLhsl(311, 59%, 47%)
HSVhsv(311, 74%, 75%)
CMYKcmyk(0%, 74.3%, 13.6%, 25.1%)
CIE-LABlab(46.96, 66.66, -31.17)
CIE-LCHlch(46.96, 73.59, 334.94°)
OKLaboklab(57.11% 0.196 -0.0849)
OKLCHoklch(57.11% 0.214 336.6)
XYZxyz(29.3762, 15.9923, 37.1297)
Luminance0.1599 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BF31A5 #31BF4B
analogous
#9231BF #BF31A5 #BF315E
triadic
#BF31A5 #A5BF31 #31A5BF
tetradic
#BF31A5 #BF9231 #31BF4B #315EBF
square
#BF31A5 #BF9231 #31BF4B #315EBF
split-complementary
#BF31A5 #5EBF31 #31BF92
monochromatic
#5E1851 #8E257B #BF31A5 #D459BE #E18AD1

Accessibility & contrast

On white

5.00
#BF31A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#BF31A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BF31A5
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BF31A5#FFFFFF#000000##FFFFFF
##BF31A51.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3462A8
Deuteranopia (green-blind)
#6677A2
Tritanopia (blue-blind)
#C93B68
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #bf31a5;
/* rgb */ color: rgb(191, 49, 165);
/* oklch */ color: oklch(57.1% 0.214 336.6);
Tailwind
colors: {
  custom: {
    50: '#d677c0',
    500: '#bf31a5',
    950: '#000000',
  },
}
SCSS
$custom: #bf31a5;
$custom-light: #d677c0;
$custom-dark: #000000;
JSON
{
  "hex": "#bf31a5",
  "rgb": {
    "r": 191,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 310.986,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57109,
    "c": 0.21361,
    "h": 336.6
  },
  "luminance": 0.1599
}

Semantic roles & 50–950 ramp

primary
#BF31A5
secondary
#81CB8F
accent
#E26245
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BF31A5

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

Preview Lab → · Contrast checker → · Palette generator →

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