#BA52BF#BA52BF

#BA52BF is a mid, vivid purple. Relative luminance 0.202; OKLCH L 61.1% C 0.188 H 325.8°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#BA52BF
RGBrgb(186, 82, 191)
HSLhsl(297, 46%, 54%)
HSVhsv(297, 57%, 75%)
CMYKcmyk(2.6%, 57.1%, 0%, 25.1%)
CIE-LABlab(52.10, 56.69, -38.37)
CIE-LCHlch(52.10, 68.46, 325.91°)
OKLaboklab(61.1% 0.1558 -0.106)
OKLCHoklch(61.1% 0.188 325.8)
XYZxyz(32.6703, 20.2372, 51.4655)
Luminance0.2024 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52BF #57BF52
analogous
#8352BF #BA52BF #BF528D
triadic
#BA52BF #BFBA52 #52BFBA
tetradic
#BA52BF #BF8352 #57BF52 #528DBF
square
#BA52BF #BF8352 #57BF52 #528DBF
split-complementary
#BA52BF #8DBF52 #52BF83
monochromatic
#6B296E #96399B #BA52BF #CC7FD0 #DEABE0

Accessibility & contrast

On white

4.16
#BA52BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#BA52BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52BF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52BF#FFFFFF#000000##000000
##BA52BF1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4374C2
Deuteranopia (green-blind)
#6681BC
Tritanopia (blue-blind)
#BE6081
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba52bf;
/* rgb */ color: rgb(186, 82, 191);
/* oklch */ color: oklch(61.1% 0.188 325.8);
Tailwind
colors: {
  custom: {
    50: '#d188d3',
    500: '#ba52bf',
    950: '#000000',
  },
}
SCSS
$custom: #ba52bf;
$custom-light: #d188d3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52bf",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 191
  },
  "hsl": {
    "h": 297.248,
    "s": 45.992,
    "l": 53.529
  },
  "oklch": {
    "l": 0.611,
    "c": 0.18841,
    "h": 325.8
  },
  "luminance": 0.20235
}

Semantic roles & 50–950 ramp

primary
#BA52BF
secondary
#A1CE9F
accent
#D65258
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA52BF

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

Preview Lab → · Contrast checker → · Palette generator →

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