#BA52AF#BA52AF

#BA52AF is a mid, vivid purple. Relative luminance 0.196; OKLCH L 60.3% C 0.175 H 331.7°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#BA52AF
RGBrgb(186, 82, 175)
HSLhsl(306, 43%, 53%)
HSVhsv(306, 56%, 73%)
CMYKcmyk(0%, 55.9%, 5.9%, 27.1%)
CIE-LABlab(51.35, 53.90, -30.27)
CIE-LCHlch(51.35, 61.81, 330.68°)
OKLaboklab(60.3% 0.1538 -0.0827)
OKLCHoklch(60.3% 0.175 331.7)
XYZxyz(31.0047, 19.5709, 42.6937)
Luminance0.1957 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52AF #52BA5D
analogous
#9152BA #BA52AF #BA527B
triadic
#BA52AF #AFBA52 #52AFBA
tetradic
#BA52AF #BA9152 #52BA5D #527BBA
square
#BA52AF #BA9152 #52BA5D #527BBA
split-complementary
#BA52AF #7BBA52 #52BA91
monochromatic
#682A61 #943B8A #BA52AF #CB7EC3 #DDAAD7

Accessibility & contrast

On white

4.27
#BA52AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#BA52AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52AF
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52AF#FFFFFF#000000##000000
##BA52AF1.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E71B2
Deuteranopia (green-blind)
#6E80AC
Tritanopia (blue-blind)
#C15A79
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba52af;
/* rgb */ color: rgb(186, 82, 175);
/* oklch */ color: oklch(60.3% 0.175 331.7);
Tailwind
colors: {
  custom: {
    50: '#d188c7',
    500: '#ba52af',
    950: '#000000',
  },
}
SCSS
$custom: #ba52af;
$custom-light: #d188c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52af",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 175
  },
  "hsl": {
    "h": 306.346,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.603,
    "c": 0.1746,
    "h": 331.7
  },
  "luminance": 0.19569
}

Semantic roles & 50–950 ramp

primary
#BA52AF
secondary
#9DCAA2
accent
#D36255
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA52AF

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

Preview Lab → · Contrast checker → · Palette generator →

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