#BA52C2#BA52C2

#BA52C2 is a mid, vivid purple. Relative luminance 0.204; OKLCH L 61.3% C 0.191 H 324.7°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#BA52C2
RGBrgb(186, 82, 194)
HSLhsl(296, 48%, 54%)
HSVhsv(296, 58%, 76%)
CMYKcmyk(4.1%, 57.7%, 0%, 23.9%)
CIE-LABlab(52.25, 57.24, -39.87)
CIE-LCHlch(52.25, 69.75, 325.14°)
OKLaboklab(61.26% 0.1561 -0.1103)
OKLCHoklch(61.26% 0.191 324.7)
XYZxyz(33.0038, 20.3706, 53.2220)
Luminance0.2037 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52C2 #5AC252
analogous
#8252C2 #BA52C2 #C25292
triadic
#BA52C2 #C2BA52 #52C2BA
tetradic
#BA52C2 #C28252 #5AC252 #5292C2
square
#BA52C2 #C28252 #5AC252 #5292C2
split-complementary
#BA52C2 #92C252 #52C282
monochromatic
#6C2872 #97389F #BA52C2 #CC7FD2 #DEACE2

Accessibility & contrast

On white

4.14
#BA52C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#BA52C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52C2
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52C2#FFFFFF#000000##000000
##BA52C21.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4174C6
Deuteranopia (green-blind)
#6581BF
Tritanopia (blue-blind)
#BE6182
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba52c2;
/* rgb */ color: rgb(186, 82, 194);
/* oklch */ color: oklch(61.3% 0.191 324.7);
Tailwind
colors: {
  custom: {
    50: '#d188d5',
    500: '#ba52c2',
    950: '#000000',
  },
}
SCSS
$custom: #ba52c2;
$custom-light: #d188d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52c2",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 295.714,
    "s": 47.863,
    "l": 54.118
  },
  "oklch": {
    "l": 0.61258,
    "c": 0.1911,
    "h": 324.7
  },
  "luminance": 0.20369
}

Semantic roles & 50–950 ramp

primary
#BA52C2
secondary
#A3D0A0
accent
#D7505A
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #BA52C2

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

Preview Lab → · Contrast checker → · Palette generator →

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