#BA51CB#BA51CB

#BA51CB is a mid, highly saturated purple. Relative luminance 0.206; OKLCH L 61.6% C 0.201 H 321.9°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#BA51CB
RGBrgb(186, 81, 203)
HSLhsl(292, 54%, 56%)
HSVhsv(292, 60%, 80%)
CMYKcmyk(8.4%, 60.1%, 0%, 20.4%)
CIE-LABlab(52.55, 59.36, -44.57)
CIE-LCHlch(52.55, 74.23, 323.10°)
OKLaboklab(61.63% 0.1579 -0.1239)
OKLCHoklch(61.63% 0.201 321.9)
XYZxyz(33.9705, 20.6375, 58.6824)
Luminance0.2064 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51CB #62CB51
analogous
#7D51CB #BA51CB #CB519F
triadic
#BA51CB #CBBA51 #51CBBA
tetradic
#BA51CB #CB7D51 #62CB51 #519FCB
square
#BA51CB #CB7D51 #62CB51 #519FCB
split-complementary
#BA51CB #9FCB51 #51CB7D
monochromatic
#70257C #9B33AC #BA51CB #CD80D9 #DFAFE7

Accessibility & contrast

On white

4.10
#BA51CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#BA51CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51CB
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51CB#FFFFFF#000000##000000
##BA51CB1.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3876CF
Deuteranopia (green-blind)
#5F81C8
Tritanopia (blue-blind)
#BC6487
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba51cb;
/* rgb */ color: rgb(186, 81, 203);
/* oklch */ color: oklch(61.6% 0.201 321.9);
Tailwind
colors: {
  custom: {
    50: '#d288db',
    500: '#ba51cb',
    950: '#000000',
  },
}
SCSS
$custom: #ba51cb;
$custom-light: #d288db;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51cb",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 291.639,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.61625,
    "c": 0.20071,
    "h": 321.9
  },
  "luminance": 0.20636
}

Semantic roles & 50–950 ramp

primary
#BA51CB
secondary
#AAD5A3
accent
#DD4A5F
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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