#BA52CA#BA52CA

#BA52CA is a mid, vivid purple. Relative luminance 0.207; OKLCH L 61.7% C 0.198 H 322.1°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#BA52CA
RGBrgb(186, 82, 202)
HSLhsl(292, 53%, 56%)
HSVhsv(292, 59%, 79%)
CMYKcmyk(7.9%, 59.4%, 0%, 20.8%)
CIE-LABlab(52.66, 58.72, -43.82)
CIE-LCHlch(52.66, 73.26, 323.27°)
OKLaboklab(61.69% 0.1566 -0.1218)
OKLCHoklch(61.69% 0.198 322.1)
XYZxyz(33.9265, 20.7397, 58.0818)
Luminance0.2074 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52CA #62CA52
analogous
#7E52CA #BA52CA #CA529E
triadic
#BA52CA #CABA52 #52CABA
tetradic
#BA52CA #CA7E52 #62CA52 #529ECA
square
#BA52CA #CA7E52 #62CA52 #529ECA
split-complementary
#BA52CA #9ECA52 #52CA7E
monochromatic
#70267C #9B34AB #BA52CA #CD81D8 #DFB0E7

Accessibility & contrast

On white

4.08
#BA52CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#BA52CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52CA
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52CA#FFFFFF#000000##000000
##BA52CA1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A76CE
Deuteranopia (green-blind)
#6182C7
Tritanopia (blue-blind)
#BC6486
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba52ca;
/* rgb */ color: rgb(186, 82, 202);
/* oklch */ color: oklch(61.7% 0.198 322.1);
Tailwind
colors: {
  custom: {
    50: '#d288da',
    500: '#ba52ca',
    950: '#000000',
  },
}
SCSS
$custom: #ba52ca;
$custom-light: #d288da;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52ca",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 292,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.6169,
    "c": 0.19837,
    "h": 322.1
  },
  "luminance": 0.20738
}

Semantic roles & 50–950 ramp

primary
#BA52CA
secondary
#AAD5A3
accent
#DD4B5F
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA52CA

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

Preview Lab → · Contrast checker → · Palette generator →

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