#BA52C0#BA52C0

#BA52C0 is a mid, vivid purple. Relative luminance 0.203; OKLCH L 61.2% C 0.189 H 325.4°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#BA52C0
RGBrgb(186, 82, 192)
HSLhsl(297, 47%, 54%)
HSVhsv(297, 57%, 75%)
CMYKcmyk(3.1%, 57.3%, 0%, 24.7%)
CIE-LABlab(52.15, 56.88, -38.87)
CIE-LCHlch(52.15, 68.89, 325.65°)
OKLaboklab(61.15% 0.1559 -0.1074)
OKLCHoklch(61.15% 0.189 325.4)
XYZxyz(32.7807, 20.2813, 52.0470)
Luminance0.2028 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52C0 #58C052
analogous
#8352C0 #BA52C0 #C0528F
triadic
#BA52C0 #C0BA52 #52C0BA
tetradic
#BA52C0 #C08352 #58C052 #528FC0
square
#BA52C0 #C08352 #58C052 #528FC0
split-complementary
#BA52C0 #8FC052 #52C083
monochromatic
#6B286F #97399C #BA52C0 #CC7FD0 #DEACE1

Accessibility & contrast

On white

4.15
#BA52C0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#BA52C0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52C0
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52C0#FFFFFF#000000##000000
##BA52C01.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba52c0;
/* rgb */ color: rgb(186, 82, 192);
/* oklch */ color: oklch(61.2% 0.189 325.4);
Tailwind
colors: {
  custom: {
    50: '#d188d3',
    500: '#ba52c0',
    950: '#000000',
  },
}
SCSS
$custom: #ba52c0;
$custom-light: #d188d3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52c0",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 192
  },
  "hsl": {
    "h": 296.727,
    "s": 46.61,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61153,
    "c": 0.1893,
    "h": 325.4
  },
  "luminance": 0.20279
}

Semantic roles & 50–950 ramp

primary
#BA52C0
secondary
#A2CE9F
accent
#D65259
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #BA52C0

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

Preview Lab → · Contrast checker → · Palette generator →

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