#BA51BC#BA51BC

#BA51BC is a mid, vivid purple. Relative luminance 0.200; OKLCH L 60.8% C 0.187 H 326.8°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#BA51BC
RGBrgb(186, 81, 188)
HSLhsl(299, 44%, 53%)
HSVhsv(299, 57%, 74%)
CMYKcmyk(1.1%, 56.9%, 0%, 26.3%)
CIE-LABlab(51.79, 56.62, -37.13)
CIE-LCHlch(51.79, 67.71, 326.74°)
OKLaboklab(60.82% 0.1568 -0.1024)
OKLCHoklch(60.82% 0.187 326.8)
XYZxyz(32.2687, 19.9567, 49.7196)
Luminance0.1996 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51BC #53BC51
analogous
#8551BC #BA51BC #BC5188
triadic
#BA51BC #BCBA51 #51BCBA
tetradic
#BA51BC #BC8551 #53BC51 #5188BC
square
#BA51BC #BC8551 #53BC51 #5188BC
split-complementary
#BA51BC #88BC51 #51BC85
monochromatic
#69296A #943A96 #BA51BC #CC7DCD #DDA9DE

Accessibility & contrast

On white

4.21
#BA51BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#BA51BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51BC
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51BC#FFFFFF#000000##000000
##BA51BC1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4473BF
Deuteranopia (green-blind)
#6780B9
Tritanopia (blue-blind)
#BF5E7F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba51bc;
/* rgb */ color: rgb(186, 81, 188);
/* oklch */ color: oklch(60.8% 0.187 326.8);
Tailwind
colors: {
  custom: {
    50: '#d187d0',
    500: '#ba51bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba51bc;
$custom-light: #d187d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51bc",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 298.879,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60821,
    "c": 0.18725,
    "h": 326.8
  },
  "luminance": 0.19955
}

Semantic roles & 50–950 ramp

primary
#BA51BC
secondary
#9ECC9D
accent
#D45456
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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