#BA51CA#BA51CA

#BA51CA is a mid, vivid purple. Relative luminance 0.206; OKLCH L 61.6% C 0.200 H 322.2°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#BA51CA
RGBrgb(186, 81, 202)
HSLhsl(292, 53%, 55%)
HSVhsv(292, 60%, 79%)
CMYKcmyk(7.9%, 59.9%, 0%, 20.8%)
CIE-LABlab(52.50, 59.17, -44.08)
CIE-LCHlch(52.50, 73.78, 323.32°)
OKLaboklab(61.57% 0.1578 -0.1225)
OKLCHoklch(61.57% 0.2 322.2)
XYZxyz(33.8517, 20.5899, 58.0568)
Luminance0.2059 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51CA #61CA51
analogous
#7D51CA #BA51CA #CA519D
triadic
#BA51CA #CABA51 #51CABA
tetradic
#BA51CA #CA7D51 #61CA51 #519DCA
square
#BA51CA #CA7D51 #61CA51 #519DCA
split-complementary
#BA51CA #9DCA51 #51CA7D
monochromatic
#70257B #9A34AA #BA51CA #CD80D8 #DFAFE7

Accessibility & contrast

On white

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

On black

5.12
#BA51CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51CA
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51CA#FFFFFF#000000##000000
##BA51CA1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3975CE
Deuteranopia (green-blind)
#6081C7
Tritanopia (blue-blind)
#BC6386
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba51ca;
/* rgb */ color: rgb(186, 81, 202);
/* oklch */ color: oklch(61.6% 0.200 322.2);
Tailwind
colors: {
  custom: {
    50: '#d288da',
    500: '#ba51ca',
    950: '#000000',
  },
}
SCSS
$custom: #ba51ca;
$custom-light: #d288da;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51ca",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 292.066,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.61569,
    "c": 0.1998,
    "h": 322.2
  },
  "luminance": 0.20588
}

Semantic roles & 50–950 ramp

primary
#BA51CA
secondary
#A9D5A2
accent
#DD4B5E
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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