#BA52C8#BA52C8

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

Color values

HEX#BA52C8
RGBrgb(186, 82, 200)
HSLhsl(293, 52%, 55%)
HSVhsv(293, 59%, 78%)
CMYKcmyk(7%, 59%, 0%, 21.6%)
CIE-LABlab(52.56, 58.34, -42.83)
CIE-LCHlch(52.56, 72.38, 323.71°)
OKLaboklab(61.58% 0.1565 -0.1189)
OKLCHoklch(61.58% 0.197 322.8)
XYZxyz(33.6913, 20.6456, 56.8427)
Luminance0.2064 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52C8 #60C852
analogous
#7F52C8 #BA52C8 #C8529B
triadic
#BA52C8 #C8BA52 #52C8BA
tetradic
#BA52C8 #C87F52 #60C852 #529BC8
square
#BA52C8 #C87F52 #60C852 #529BC8
split-complementary
#BA52C8 #9BC852 #52C87F
monochromatic
#6F2779 #9A35A8 #BA52C8 #CD80D7 #DFAFE6

Accessibility & contrast

On white

4.09
#BA52C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#BA52C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52C8
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52C8#FFFFFF#000000##000000
##BA52C81.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C76CC
Deuteranopia (green-blind)
#6282C5
Tritanopia (blue-blind)
#BD6385
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba52c8;
/* rgb */ color: rgb(186, 82, 200);
/* oklch */ color: oklch(61.6% 0.197 322.8);
Tailwind
colors: {
  custom: {
    50: '#d288d9',
    500: '#ba52c8',
    950: '#000000',
  },
}
SCSS
$custom: #ba52c8;
$custom-light: #d288d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52c8",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 292.881,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.6158,
    "c": 0.19653,
    "h": 322.8
  },
  "luminance": 0.20644
}

Semantic roles & 50–950 ramp

primary
#BA52C8
secondary
#A8D4A2
accent
#DB4D5E
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA52C8

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

Preview Lab → · Contrast checker → · Palette generator →

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