#BA52BC#BA52BC

#BA52BC is a mid, vivid purple. Relative luminance 0.201; OKLCH L 60.9% C 0.186 H 326.8°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#BA52BC
RGBrgb(186, 82, 188)
HSLhsl(299, 44%, 53%)
HSVhsv(299, 56%, 74%)
CMYKcmyk(1.1%, 56.4%, 0%, 26.3%)
CIE-LABlab(51.96, 56.16, -36.87)
CIE-LCHlch(51.96, 67.18, 326.71°)
OKLaboklab(60.95% 0.1555 -0.1016)
OKLCHoklch(60.95% 0.186 326.8)
XYZxyz(32.3435, 20.1064, 49.7445)
Luminance0.2011 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52BC #54BC52
analogous
#8552BC #BA52BC #BC5289
triadic
#BA52BC #BCBA52 #52BCBA
tetradic
#BA52BC #BC8552 #54BC52 #5289BC
square
#BA52BC #BC8552 #54BC52 #5289BC
split-complementary
#BA52BC #89BC52 #52BC85
monochromatic
#69296A #953A97 #BA52BC #CC7ECD #DDAADE

Accessibility & contrast

On white

4.18
#BA52BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#BA52BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52BC
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52BC#FFFFFF#000000##000000
##BA52BC1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4673BF
Deuteranopia (green-blind)
#6881B9
Tritanopia (blue-blind)
#BF5F7F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba52bc;
/* rgb */ color: rgb(186, 82, 188);
/* oklch */ color: oklch(60.9% 0.186 326.8);
Tailwind
colors: {
  custom: {
    50: '#d188d0',
    500: '#ba52bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba52bc;
$custom-light: #d188d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52bc",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 298.868,
    "s": 44.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60945,
    "c": 0.18575,
    "h": 326.8
  },
  "luminance": 0.20105
}

Semantic roles & 50–950 ramp

primary
#BA52BC
secondary
#9FCC9E
accent
#D45456
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA52BC

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

Preview Lab → · Contrast checker → · Palette generator →

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