#BA52CC#BA52CC

#BA52CC is a mid, highly saturated purple. Relative luminance 0.208; OKLCH L 61.8% C 0.200 H 321.5°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#BA52CC
RGBrgb(186, 82, 204)
HSLhsl(291, 54%, 56%)
HSVhsv(291, 60%, 80%)
CMYKcmyk(8.8%, 59.8%, 0%, 20%)
CIE-LABlab(52.77, 59.09, -44.80)
CIE-LCHlch(52.77, 74.15, 322.84°)
OKLaboklab(61.8% 0.1567 -0.1246)
OKLCHoklch(61.8% 0.2 321.5)
XYZxyz(34.1649, 20.8350, 59.3370)
Luminance0.2083 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52CC #64CC52
analogous
#7D52CC #BA52CC #CC52A1
triadic
#BA52CC #CCBA52 #52CCBA
tetradic
#BA52CC #CC7D52 #64CC52 #52A1CC
square
#BA52CC #CC7D52 #64CC52 #52A1CC
split-complementary
#BA52CC #A1CC52 #52CC7D
monochromatic
#71257E #9C33AE #BA52CC #CD81DA #E0B1E8

Accessibility & contrast

On white

4.06
#BA52CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#BA52CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52CC
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52CC#FFFFFF#000000##000000
##BA52CC1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3876D0
Deuteranopia (green-blind)
#5F82C9
Tritanopia (blue-blind)
#BC6587
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba52cc;
/* rgb */ color: rgb(186, 82, 204);
/* oklch */ color: oklch(61.8% 0.200 321.5);
Tailwind
colors: {
  custom: {
    50: '#d288dc',
    500: '#ba52cc',
    950: '#000000',
  },
}
SCSS
$custom: #ba52cc;
$custom-light: #d288dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52cc",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 291.148,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.618,
    "c": 0.2002,
    "h": 321.5
  },
  "luminance": 0.20833
}

Semantic roles & 50–950 ramp

primary
#BA52CC
secondary
#ABD6A4
accent
#DE4A60
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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