#BA55E4#BA55E4

#BA55E4 is a light, highly saturated purple. Relative luminance 0.225; OKLCH L 63.6% C 0.219 H 314.5°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#BA55E4
RGBrgb(186, 85, 228)
HSLhsl(282, 73%, 61%)
HSVhsv(282, 63%, 89%)
CMYKcmyk(18.4%, 62.7%, 0%, 10.6%)
CIE-LABlab(54.59, 62.43, -55.51)
CIE-LCHlch(54.59, 83.54, 318.36°)
OKLaboklab(63.55% 0.1534 -0.1559)
OKLCHoklch(63.55% 0.219 314.5)
XYZxyz(37.4995, 22.5387, 75.7588)
Luminance0.2254 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA55E4 #7FE455
analogous
#7355E4 #BA55E4 #E455C6
triadic
#BA55E4 #E4BA55 #55E4BA
tetradic
#BA55E4 #E47355 #7FE455 #55C6E4
square
#BA55E4 #E47355 #7FE455 #55C6E4
split-complementary
#BA55E4 #C6E455 #55E473
monochromatic
#7C1AA4 #A423D9 #BA55E4 #CF8AEC #E5BFF5

Accessibility & contrast

On white

3.81
#BA55E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#BA55E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA55E4
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA55E4#FFFFFF#000000##000000
##BA55E41.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C7DE8
Deuteranopia (green-blind)
#5185E1
Tritanopia (blue-blind)
#B77095
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba55e4;
/* rgb */ color: rgb(186, 85, 228);
/* oklch */ color: oklch(63.6% 0.219 314.5);
Tailwind
colors: {
  custom: {
    50: '#d28bed',
    500: '#ba55e4',
    950: '#000000',
  },
}
SCSS
$custom: #ba55e4;
$custom-light: #d28bed;
$custom-dark: #000000;
JSON
{
  "hex": "#ba55e4",
  "rgb": {
    "r": 186,
    "g": 85,
    "b": 228
  },
  "hsl": {
    "h": 282.378,
    "s": 72.589,
    "l": 61.373
  },
  "oklch": {
    "l": 0.63553,
    "c": 0.21872,
    "h": 314.5
  },
  "luminance": 0.22538
}

Semantic roles & 50–950 ramp

primary
#BA55E4
secondary
#BFE5B0
accent
#D5114A
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA55E4

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

Preview Lab → · Contrast checker → · Palette generator →

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