#BA54CB#BA54CB

#BA54CB is a mid, vivid purple. Relative luminance 0.211; OKLCH L 62.0% C 0.196 H 321.7°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#BA54CB
RGBrgb(186, 84, 203)
HSLhsl(291, 53%, 56%)
HSVhsv(291, 59%, 80%)
CMYKcmyk(8.4%, 58.6%, 0%, 20.4%)
CIE-LABlab(53.05, 57.99, -43.78)
CIE-LCHlch(53.05, 72.66, 322.95°)
OKLaboklab(61.99% 0.1542 -0.1216)
OKLCHoklch(61.99% 0.196 321.7)
XYZxyz(34.1983, 21.0932, 58.7584)
Luminance0.2109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54CB #65CB54
analogous
#7F54CB #BA54CB #CB54A1
triadic
#BA54CB #CBBA54 #54CBBA
tetradic
#BA54CB #CB7F54 #65CB54 #54A1CB
square
#BA54CB #CB7F54 #65CB54 #54A1CB
split-complementary
#BA54CB #A1CB54 #54CB7F
monochromatic
#72267E #9C35AD #BA54CB #CD83D9 #E0B2E8

Accessibility & contrast

On white

4.02
#BA54CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#BA54CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54CB
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54CB#FFFFFF#000000##000000
##BA54CB1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C77CF
Deuteranopia (green-blind)
#6183C8
Tritanopia (blue-blind)
#BC6688
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba54cb;
/* rgb */ color: rgb(186, 84, 203);
/* oklch */ color: oklch(62.0% 0.196 321.7);
Tailwind
colors: {
  custom: {
    50: '#d28adb',
    500: '#ba54cb',
    950: '#000000',
  },
}
SCSS
$custom: #ba54cb;
$custom-light: #d28adb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54cb",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 291.429,
    "s": 53.363,
    "l": 56.275
  },
  "oklch": {
    "l": 0.61989,
    "c": 0.19639,
    "h": 321.7
  },
  "luminance": 0.21092
}

Semantic roles & 50–950 ramp

primary
#BA54CB
secondary
#ACD6A5
accent
#DD4B60
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA54CB

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

Preview Lab → · Contrast checker → · Palette generator →

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