#BA52BB#BA52BB

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

Color values

HEX#BA52BB
RGBrgb(186, 82, 187)
HSLhsl(299, 44%, 53%)
HSVhsv(299, 56%, 73%)
CMYKcmyk(0.5%, 56.1%, 0%, 26.7%)
CIE-LABlab(51.91, 55.98, -36.37)
CIE-LCHlch(51.91, 66.75, 326.99°)
OKLaboklab(60.89% 0.1554 -0.1002)
OKLCHoklch(60.89% 0.185 327.2)
XYZxyz(32.2361, 20.0635, 49.1788)
Luminance0.2006 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52BB #53BB52
analogous
#8652BB #BA52BB #BB5287
triadic
#BA52BB #BBBA52 #52BBBA
tetradic
#BA52BB #BB8652 #53BB52 #5287BB
square
#BA52BB #BB8652 #53BB52 #5287BB
split-complementary
#BA52BB #87BB52 #52BB86
monochromatic
#692969 #943B95 #BA52BB #CC7ECC #DDAADE

Accessibility & contrast

On white

4.19
#BA52BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#BA52BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52BB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52BB#FFFFFF#000000##000000
##BA52BB1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba52bb;
/* rgb */ color: rgb(186, 82, 187);
/* oklch */ color: oklch(60.9% 0.185 327.2);
Tailwind
colors: {
  custom: {
    50: '#d188d0',
    500: '#ba52bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba52bb;
$custom-light: #d188d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52bb",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 187
  },
  "hsl": {
    "h": 299.429,
    "s": 43.568,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60894,
    "c": 0.18487,
    "h": 327.2
  },
  "luminance": 0.20062
}

Semantic roles & 50–950 ramp

primary
#BA52BB
secondary
#9ECB9E
accent
#D35456
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA52BB

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

Preview Lab → · Contrast checker → · Palette generator →

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