#BA51BD#BA51BD

#BA51BD is a mid, vivid purple. Relative luminance 0.200; OKLCH L 60.9% C 0.188 H 326.5°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#BA51BD
RGBrgb(186, 81, 189)
HSLhsl(298, 45%, 53%)
HSVhsv(298, 57%, 74%)
CMYKcmyk(1.6%, 57.1%, 0%, 25.9%)
CIE-LABlab(51.84, 56.79, -37.64)
CIE-LCHlch(51.84, 68.13, 326.47°)
OKLaboklab(60.87% 0.1569 -0.1038)
OKLCHoklch(60.87% 0.188 326.5)
XYZxyz(32.3768, 20.0000, 50.2893)
Luminance0.2000 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51BD #54BD51
analogous
#8451BD #BA51BD #BD518A
triadic
#BA51BD #BDBA51 #51BDBA
tetradic
#BA51BD #BD8451 #54BD51 #518ABD
square
#BA51BD #BD8451 #54BD51 #518ABD
split-complementary
#BA51BD #8ABD51 #51BD84
monochromatic
#69296B #953997 #BA51BD #CC7DCE #DDAADF

Accessibility & contrast

On white

4.20
#BA51BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#BA51BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51BD
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51BD#FFFFFF#000000##000000
##BA51BD1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4473C0
Deuteranopia (green-blind)
#6780BA
Tritanopia (blue-blind)
#BF5F7F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba51bd;
/* rgb */ color: rgb(186, 81, 189);
/* oklch */ color: oklch(60.9% 0.188 326.5);
Tailwind
colors: {
  custom: {
    50: '#d188d1',
    500: '#ba51bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba51bd;
$custom-light: #d188d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51bd",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 298.333,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60873,
    "c": 0.18813,
    "h": 326.5
  },
  "luminance": 0.19998
}

Semantic roles & 50–950 ramp

primary
#BA51BD
secondary
#9FCC9E
accent
#D55357
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA51BD

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

Preview Lab → · Contrast checker → · Palette generator →

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