#BA5FAC#BA5FAC

#BA5FAC is a mid, vivid purple. Relative luminance 0.216; OKLCH L 61.9% C 0.151 H 333.3°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#BA5FAC
RGBrgb(186, 95, 172)
HSLhsl(309, 40%, 55%)
HSVhsv(309, 49%, 73%)
CMYKcmyk(0%, 48.9%, 7.5%, 27.1%)
CIE-LABlab(53.60, 47.05, -25.02)
CIE-LCHlch(53.60, 53.29, 331.99°)
OKLaboklab(61.93% 0.1349 -0.0679)
OKLCHoklch(61.93% 0.151 333.3)
XYZxyz(31.7882, 21.6041, 41.5174)
Luminance0.2160 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FAC #5FBA6D
analogous
#9B5FBA #BA5FAC #BA5F7E
triadic
#BA5FAC #ACBA5F #5FACBA
tetradic
#BA5FAC #BA9B5F #5FBA6D #5F7EBA
square
#BA5FAC #BA9B5F #5FBA6D #5F7EBA
split-complementary
#BA5FAC #7EBA5F #5FBA9B
monochromatic
#6F3065 #9A428C #BA5FAC #CC8AC2 #DFB5D8

Accessibility & contrast

On white

3.95
#BA5FAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#BA5FAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FAC
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FAC#FFFFFF#000000##000000
##BA5FAC1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E78AF
Deuteranopia (green-blind)
#7785A9
Tritanopia (blue-blind)
#C1657D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba5fac;
/* rgb */ color: rgb(186, 95, 172);
/* oklch */ color: oklch(61.9% 0.151 333.3);
Tailwind
colors: {
  custom: {
    50: '#d190c5',
    500: '#ba5fac',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fac;
$custom-light: #d190c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fac",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 309.231,
    "s": 39.738,
    "l": 55.098
  },
  "oklch": {
    "l": 0.61926,
    "c": 0.15106,
    "h": 333.3
  },
  "luminance": 0.21602
}

Semantic roles & 50–950 ramp

primary
#BA5FAC
secondary
#A7CDAD
accent
#D06B58
background
#FDF9FC
surface
#FAF1F8
border
#D3CBD1
text
#140D13
muted
#837E82

Preview Lab

Preview with #BA5FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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