#BA51BF#BA51BF

#BA51BF is a mid, vivid purple. Relative luminance 0.201; OKLCH L 61.0% C 0.190 H 325.8°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#BA51BF
RGBrgb(186, 81, 191)
HSLhsl(297, 46%, 53%)
HSVhsv(297, 58%, 75%)
CMYKcmyk(2.6%, 57.6%, 0%, 25.1%)
CIE-LABlab(51.94, 57.15, -38.64)
CIE-LCHlch(51.94, 68.99, 325.94°)
OKLaboklab(60.98% 0.1571 -0.1067)
OKLCHoklch(60.98% 0.19 325.8)
XYZxyz(32.5954, 20.0874, 51.4405)
Luminance0.2009 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51BF #56BF51
analogous
#8351BF #BA51BF #BF518D
triadic
#BA51BF #BFBA51 #51BFBA
tetradic
#BA51BF #BF8351 #56BF51 #518DBF
square
#BA51BF #BF8351 #56BF51 #518DBF
split-complementary
#BA51BF #8DBF51 #51BF83
monochromatic
#6A286D #96399A #BA51BF #CC7ECF #DDAAE0

Accessibility & contrast

On white

4.19
#BA51BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#BA51BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51BF
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51BF#FFFFFF#000000##000000
##BA51BF1.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4273C2
Deuteranopia (green-blind)
#6680BC
Tritanopia (blue-blind)
#BE5F80
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba51bf;
/* rgb */ color: rgb(186, 81, 191);
/* oklch */ color: oklch(61.0% 0.190 325.8);
Tailwind
colors: {
  custom: {
    50: '#d188d3',
    500: '#ba51bf',
    950: '#000000',
  },
}
SCSS
$custom: #ba51bf;
$custom-light: #d188d3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51bf",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 297.273,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.60977,
    "c": 0.1899,
    "h": 325.8
  },
  "luminance": 0.20086
}

Semantic roles & 50–950 ramp

primary
#BA51BF
secondary
#A0CE9E
accent
#D65258
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA51BF

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

Preview Lab → · Contrast checker → · Palette generator →

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