#BA52C9#BA52C9

#BA52C9 is a mid, vivid purple. Relative luminance 0.207; OKLCH L 61.6% C 0.197 H 322.5°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#BA52C9
RGBrgb(186, 82, 201)
HSLhsl(292, 52%, 55%)
HSVhsv(292, 59%, 79%)
CMYKcmyk(7.5%, 59.2%, 0%, 21.2%)
CIE-LABlab(52.61, 58.53, -43.33)
CIE-LCHlch(52.61, 72.82, 323.49°)
OKLaboklab(61.64% 0.1565 -0.1203)
OKLCHoklch(61.64% 0.197 322.5)
XYZxyz(33.8085, 20.6925, 57.4602)
Luminance0.2069 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52C9 #61C952
analogous
#7E52C9 #BA52C9 #C9529C
triadic
#BA52C9 #C9BA52 #52C9BA
tetradic
#BA52C9 #C97E52 #61C952 #529CC9
square
#BA52C9 #C97E52 #61C952 #529CC9
split-complementary
#BA52C9 #9CC952 #52C97E
monochromatic
#70267A #9A35A9 #BA52C9 #CD81D8 #DFAFE6

Accessibility & contrast

On white

4.09
#BA52C9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#BA52C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52C9
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52C9#FFFFFF#000000##000000
##BA52C91.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba52c9;
/* rgb */ color: rgb(186, 82, 201);
/* oklch */ color: oklch(61.6% 0.197 322.5);
Tailwind
colors: {
  custom: {
    50: '#d288da',
    500: '#ba52c9',
    950: '#000000',
  },
}
SCSS
$custom: #ba52c9;
$custom-light: #d288da;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52c9",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 201
  },
  "hsl": {
    "h": 292.437,
    "s": 52.423,
    "l": 55.49
  },
  "oklch": {
    "l": 0.61635,
    "c": 0.19744,
    "h": 322.5
  },
  "luminance": 0.20691
}

Semantic roles & 50–950 ramp

primary
#BA52C9
secondary
#A9D4A3
accent
#DC4C5E
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA52C9

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

Preview Lab → · Contrast checker → · Palette generator →

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