#BA51BB#BA51BB

#BA51BB is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.8% C 0.186 H 327.2°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#BA51BB
RGBrgb(186, 81, 187)
HSLhsl(299, 44%, 53%)
HSVhsv(299, 57%, 73%)
CMYKcmyk(0.5%, 56.7%, 0%, 26.7%)
CIE-LABlab(51.74, 56.44, -36.63)
CIE-LCHlch(51.74, 67.28, 327.01°)
OKLaboklab(60.77% 0.1567 -0.1009)
OKLCHoklch(60.77% 0.186 327.2)
XYZxyz(32.1612, 19.9138, 49.1538)
Luminance0.1991 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51BB #52BB51
analogous
#8551BB #BA51BB #BB5187
triadic
#BA51BB #BBBA51 #51BBBA
tetradic
#BA51BB #BB8551 #52BB51 #5187BB
square
#BA51BB #BB8551 #52BB51 #5187BB
split-complementary
#BA51BB #87BB51 #51BB85
monochromatic
#682969 #943A95 #BA51BB #CB7DCC #DDA9DD

Accessibility & contrast

On white

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

On black

4.98
#BA51BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51BB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51BB#FFFFFF#000000##000000
##BA51BB1.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4573BE
Deuteranopia (green-blind)
#6880B8
Tritanopia (blue-blind)
#BF5E7E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba51bb;
/* rgb */ color: rgb(186, 81, 187);
/* oklch */ color: oklch(60.8% 0.186 327.2);
Tailwind
colors: {
  custom: {
    50: '#d187d0',
    500: '#ba51bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba51bb;
$custom-light: #d187d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51bb",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 299.434,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.6077,
    "c": 0.18637,
    "h": 327.2
  },
  "luminance": 0.19912
}

Semantic roles & 50–950 ramp

primary
#BA51BB
secondary
#9DCB9D
accent
#D45455
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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