#BA52C4#BA52C4

#BA52C4 is a mid, vivid purple. Relative luminance 0.205; OKLCH L 61.4% C 0.193 H 324.1°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#BA52C4
RGBrgb(186, 82, 196)
HSLhsl(295, 49%, 55%)
HSVhsv(295, 58%, 77%)
CMYKcmyk(5.1%, 58.2%, 0%, 23.1%)
CIE-LABlab(52.35, 57.60, -40.86)
CIE-LCHlch(52.35, 70.62, 324.65°)
OKLaboklab(61.37% 0.1562 -0.1132)
OKLCHoklch(61.37% 0.193 324.1)
XYZxyz(33.2299, 20.4610, 54.4129)
Luminance0.2046 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52C4 #5CC452
analogous
#8152C4 #BA52C4 #C45295
triadic
#BA52C4 #C4BA52 #52C4BA
tetradic
#BA52C4 #C48152 #5CC452 #5295C4
square
#BA52C4 #C48152 #5CC452 #5295C4
split-complementary
#BA52C4 #95C452 #52C481
monochromatic
#6D2874 #9837A2 #BA52C4 #CC80D4 #DEADE3

Accessibility & contrast

On white

4.12
#BA52C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#BA52C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52C4
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52C4#FFFFFF#000000##000000
##BA52C41.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4075C8
Deuteranopia (green-blind)
#6481C1
Tritanopia (blue-blind)
#BD6283
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba52c4;
/* rgb */ color: rgb(186, 82, 196);
/* oklch */ color: oklch(61.4% 0.193 324.1);
Tailwind
colors: {
  custom: {
    50: '#d188d6',
    500: '#ba52c4',
    950: '#000000',
  },
}
SCSS
$custom: #ba52c4;
$custom-light: #d188d6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52c4",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 196
  },
  "hsl": {
    "h": 294.737,
    "s": 49.138,
    "l": 54.51
  },
  "oklch": {
    "l": 0.61365,
    "c": 0.1929,
    "h": 324.1
  },
  "luminance": 0.20459
}

Semantic roles & 50–950 ramp

primary
#BA52C4
secondary
#A5D1A1
accent
#D94F5B
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #BA52C4

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

Preview Lab → · Contrast checker → · Palette generator →

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