#BA55C2#BA55C2

#BA55C2 is a mid, vivid purple. Relative luminance 0.208; OKLCH L 61.6% C 0.187 H 324.6°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#BA55C2
RGBrgb(186, 85, 194)
HSLhsl(296, 47%, 55%)
HSVhsv(296, 56%, 76%)
CMYKcmyk(4.1%, 56.2%, 0%, 23.9%)
CIE-LABlab(52.77, 55.85, -39.06)
CIE-LCHlch(52.77, 68.15, 325.03°)
OKLaboklab(61.63% 0.1522 -0.108)
OKLCHoklch(61.63% 0.187 324.6)
XYZxyz(33.2350, 20.8329, 53.2991)
Luminance0.2083 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA55C2 #5DC255
analogous
#8355C2 #BA55C2 #C25594
triadic
#BA55C2 #C2BA55 #55C2BA
tetradic
#BA55C2 #C28355 #5DC255 #5594C2
square
#BA55C2 #C28355 #5DC255 #5594C2
split-complementary
#BA55C2 #94C255 #55C283
monochromatic
#6E2973 #993AA0 #BA55C2 #CC82D2 #DFAFE2

Accessibility & contrast

On white

4.06
#BA55C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#BA55C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA55C2
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA55C2#FFFFFF#000000##000000
##BA55C21.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4576C5
Deuteranopia (green-blind)
#6782BF
Tritanopia (blue-blind)
#BE6384
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba55c2;
/* rgb */ color: rgb(186, 85, 194);
/* oklch */ color: oklch(61.6% 0.187 324.6);
Tailwind
colors: {
  custom: {
    50: '#d18ad5',
    500: '#ba55c2',
    950: '#000000',
  },
}
SCSS
$custom: #ba55c2;
$custom-light: #d18ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba55c2",
  "rgb": {
    "r": 186,
    "g": 85,
    "b": 194
  },
  "hsl": {
    "h": 295.596,
    "s": 47.186,
    "l": 54.706
  },
  "oklch": {
    "l": 0.61633,
    "c": 0.18661,
    "h": 324.6
  },
  "luminance": 0.20831
}

Semantic roles & 50–950 ramp

primary
#BA55C2
secondary
#A6D0A2
accent
#D7515B
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #BA55C2

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

Preview Lab → · Contrast checker → · Palette generator →

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