#BA51CE#BA51CE

#BA51CE is a mid, highly saturated purple. Relative luminance 0.208; OKLCH L 61.8% C 0.203 H 320.9°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#BA51CE
RGBrgb(186, 81, 206)
HSLhsl(290, 56%, 56%)
HSVhsv(290, 61%, 81%)
CMYKcmyk(9.7%, 60.7%, 0%, 19.2%)
CIE-LABlab(52.71, 59.92, -46.03)
CIE-LCHlch(52.71, 75.56, 322.47°)
OKLaboklab(61.79% 0.158 -0.1282)
OKLCHoklch(61.79% 0.203 320.9)
XYZxyz(34.3314, 20.7818, 60.5835)
Luminance0.2078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51CE #65CE51
analogous
#7C51CE #BA51CE #CE51A4
triadic
#BA51CE #CEBA51 #51CEBA
tetradic
#BA51CE #CE7C51 #65CE51 #51A4CE
square
#BA51CE #CE7C51 #65CE51 #51A4CE
split-complementary
#BA51CE #A4CE51 #51CE7C
monochromatic
#722480 #9C32B0 #BA51CE #CD81DB #E0B1E9

Accessibility & contrast

On white

4.07
#BA51CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#BA51CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51CE
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51CE#FFFFFF#000000##000000
##BA51CE1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3476D2
Deuteranopia (green-blind)
#5D82CB
Tritanopia (blue-blind)
#BB6588
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba51ce;
/* rgb */ color: rgb(186, 81, 206);
/* oklch */ color: oklch(61.8% 0.203 320.9);
Tailwind
colors: {
  custom: {
    50: '#d288dd',
    500: '#ba51ce',
    950: '#000000',
  },
}
SCSS
$custom: #ba51ce;
$custom-light: #d288dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51ce",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 290.4,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.61792,
    "c": 0.20346,
    "h": 320.9
  },
  "luminance": 0.2078
}

Semantic roles & 50–950 ramp

primary
#BA51CE
secondary
#ACD7A4
accent
#DF4861
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA51CE

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

Preview Lab → · Contrast checker → · Palette generator →

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