#BF31C4#BF31C4

#BF31C4 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.8% C 0.236 H 326.6°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#BF31C4
RGBrgb(191, 49, 196)
HSLhsl(298, 60%, 48%)
HSVhsv(298, 75%, 77%)
CMYKcmyk(2.6%, 75%, 0%, 23.1%)
CIE-LABlab(48.59, 71.42, -46.79)
CIE-LCHlch(48.59, 85.38, 326.77°)
OKLaboklab(58.8% 0.1969 -0.13)
OKLCHoklch(58.8% 0.236 326.6)
XYZxyz(32.5474, 17.2608, 53.8312)
Luminance0.1726 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BF31C4 #36C431
analogous
#7531C4 #BF31C4 #C4317F
triadic
#BF31C4 #C4BF31 #31C4BF
tetradic
#BF31C4 #C47531 #36C431 #317FC4
square
#BF31C4 #C47531 #36C431 #317FC4
split-complementary
#BF31C4 #7FC431 #31C475
monochromatic
#601962 #8F2593 #BF31C4 #D25CD6 #E08DE2

Accessibility & contrast

On white

4.72
#BF31C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#BF31C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BF31C4
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BF31C4#FFFFFF#000000##FFFFFF
##BF31C41.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C8
Deuteranopia (green-blind)
#5679C0
Tritanopia (blue-blind)
#C44A79
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #bf31c4;
/* rgb */ color: rgb(191, 49, 196);
/* oklch */ color: oklch(58.8% 0.236 326.6);
Tailwind
colors: {
  custom: {
    50: '#d679d6',
    500: '#bf31c4',
    950: '#000000',
  },
}
SCSS
$custom: #bf31c4;
$custom-light: #d679d6;
$custom-dark: #000000;
JSON
{
  "hex": "#bf31c4",
  "rgb": {
    "r": 191,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 297.959,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.58797,
    "c": 0.23598,
    "h": 326.6
  },
  "luminance": 0.17259
}

Semantic roles & 50–950 ramp

primary
#BF31C4
secondary
#87CD84
accent
#E3454A
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BF31C4

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

Preview Lab → · Contrast checker → · Palette generator →

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