#BA72BC#BA72BC

#BA72BC is a light, vivid purple. Relative luminance 0.261; OKLCH L 65.5% C 0.133 H 326.0°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#BA72BC
RGBrgb(186, 114, 188)
HSLhsl(298, 36%, 59%)
HSVhsv(298, 39%, 74%)
CMYKcmyk(1.1%, 39.4%, 0%, 26.3%)
CIE-LABlab(58.14, 39.99, -27.24)
CIE-LCHlch(58.14, 48.39, 325.74°)
OKLaboklab(65.53% 0.1103 -0.0743)
OKLCHoklch(65.53% 0.133 326)
XYZxyz(35.3433, 26.1061, 50.7445)
Luminance0.2611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72BC #74BC72
analogous
#9572BC #BA72BC #BC7299
triadic
#BA72BC #BCBA72 #72BCBA
tetradic
#BA72BC #BC9572 #74BC72 #7299BC
square
#BA72BC #BC9572 #74BC72 #7299BC
split-complementary
#BA72BC #99BC72 #72BC95
monochromatic
#783A7A #A14EA3 #BA72BC #CE9BD0 #E3C5E3

Accessibility & contrast

On white

3.38
#BA72BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#BA72BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72BC
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72BC#FFFFFF#000000##000000
##BA72BC1.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C86BF
Deuteranopia (green-blind)
#7F8FBA
Tritanopia (blue-blind)
#BE798E
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #ba72bc;
/* rgb */ color: rgb(186, 114, 188);
/* oklch */ color: oklch(65.5% 0.133 326.0);
Tailwind
colors: {
  custom: {
    50: '#d09cd0',
    500: '#ba72bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba72bc;
$custom-light: #d09cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72bc",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 188
  },
  "hsl": {
    "h": 298.378,
    "s": 35.577,
    "l": 59.216
  },
  "oklch": {
    "l": 0.65529,
    "c": 0.13297,
    "h": 326
  },
  "luminance": 0.26105
}

Semantic roles & 50–950 ramp

primary
#BA72BC
secondary
#B7D3B6
accent
#CC5C5F
background
#FCF9FC
surface
#F9F2F9
border
#D2CCD2
text
#140E14
muted
#827E82

Preview Lab

Preview with #BA72BC

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

Preview Lab → · Contrast checker → · Palette generator →

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