#BA52CB#BA52CB

#BA52CB is a mid, vivid purple. Relative luminance 0.208; OKLCH L 61.7% C 0.199 H 321.8°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#BA52CB
RGBrgb(186, 82, 203)
HSLhsl(292, 54%, 56%)
HSVhsv(292, 60%, 80%)
CMYKcmyk(8.4%, 59.6%, 0%, 20.4%)
CIE-LABlab(52.72, 58.90, -44.31)
CIE-LCHlch(52.72, 73.71, 323.05°)
OKLaboklab(61.75% 0.1567 -0.1232)
OKLCHoklch(61.75% 0.199 321.8)
XYZxyz(34.0453, 20.7872, 58.7074)
Luminance0.2079 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52CB #63CB52
analogous
#7D52CB #BA52CB #CB529F
triadic
#BA52CB #CBBA52 #52CBBA
tetradic
#BA52CB #CB7D52 #63CB52 #529FCB
square
#BA52CB #CB7D52 #63CB52 #529FCB
split-complementary
#BA52CB #9FCB52 #52CB7D
monochromatic
#71267D #9B34AC #BA52CB #CD81D9 #E0B0E7

Accessibility & contrast

On white

4.07
#BA52CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#BA52CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52CB
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52CB#FFFFFF#000000##000000
##BA52CB1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3976CF
Deuteranopia (green-blind)
#6082C8
Tritanopia (blue-blind)
#BC6487
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba52cb;
/* rgb */ color: rgb(186, 82, 203);
/* oklch */ color: oklch(61.7% 0.199 321.8);
Tailwind
colors: {
  custom: {
    50: '#d288db',
    500: '#ba52cb',
    950: '#000000',
  },
}
SCSS
$custom: #ba52cb;
$custom-light: #d288db;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52cb",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 291.57,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.61745,
    "c": 0.19928,
    "h": 321.8
  },
  "luminance": 0.20785
}

Semantic roles & 50–950 ramp

primary
#BA52CB
secondary
#AAD5A3
accent
#DD4B5F
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA52CB

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

Preview Lab → · Contrast checker → · Palette generator →

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