#BA54CA#BA54CA

#BA54CA is a mid, vivid purple. Relative luminance 0.210; OKLCH L 61.9% C 0.195 H 322.0°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BA54CA
RGBrgb(186, 84, 202)
HSLhsl(292, 53%, 56%)
HSVhsv(292, 58%, 79%)
CMYKcmyk(7.9%, 58.4%, 0%, 20.8%)
CIE-LABlab(53.00, 57.80, -43.28)
CIE-LCHlch(53.00, 72.21, 323.17°)
OKLaboklab(61.93% 0.1541 -0.1202)
OKLCHoklch(61.93% 0.195 322)
XYZxyz(34.0796, 21.0457, 58.1328)
Luminance0.2104 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54CA #64CA54
analogous
#7F54CA #BA54CA #CA549F
triadic
#BA54CA #CABA54 #54CABA
tetradic
#BA54CA #CA7F54 #64CA54 #549FCA
square
#BA54CA #CA7F54 #64CA54 #549FCA
split-complementary
#BA54CA #9FCA54 #54CA7F
monochromatic
#71277D #9C35AC #BA54CA #CD83D8 #E0B1E7

Accessibility & contrast

On white

4.03
#BA54CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#BA54CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54CA
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54CA#FFFFFF#000000##000000
##BA54CA1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D77CE
Deuteranopia (green-blind)
#6283C7
Tritanopia (blue-blind)
#BC6587
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba54ca;
/* rgb */ color: rgb(186, 84, 202);
/* oklch */ color: oklch(61.9% 0.195 322.0);
Tailwind
colors: {
  custom: {
    50: '#d28ada',
    500: '#ba54ca',
    950: '#000000',
  },
}
SCSS
$custom: #ba54ca;
$custom-light: #d28ada;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54ca",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 202
  },
  "hsl": {
    "h": 291.864,
    "s": 52.679,
    "l": 56.078
  },
  "oklch": {
    "l": 0.61935,
    "c": 0.19545,
    "h": 322
  },
  "luminance": 0.21044
}

Semantic roles & 50–950 ramp

primary
#BA54CA
secondary
#ABD5A5
accent
#DC4C5F
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA54CA

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

Preview Lab → · Contrast checker → · Palette generator →

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