#BA72CA#BA72CA

#BA72CA is a light, vivid purple. Relative luminance 0.267; OKLCH L 66.2% C 0.147 H 320.1°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#BA72CA
RGBrgb(186, 114, 202)
HSLhsl(289, 45%, 62%)
HSVhsv(289, 44%, 79%)
CMYKcmyk(7.9%, 43.6%, 0%, 20.8%)
CIE-LABlab(58.73, 42.72, -34.28)
CIE-LCHlch(58.73, 54.77, 321.26°)
OKLaboklab(66.17% 0.1131 -0.0944)
OKLCHoklch(66.17% 0.147 320.1)
XYZxyz(36.9264, 26.7393, 59.0817)
Luminance0.2674 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72CA #82CA72
analogous
#8E72CA #BA72CA #CA72AE
triadic
#BA72CA #CABA72 #72CABA
tetradic
#BA72CA #CA8E72 #82CA72 #72AECA
square
#BA72CA #CA8E72 #82CA72 #72AECA
split-complementary
#BA72CA #AECA72 #72CA8E
monochromatic
#7D358D #A446B9 #BA72CA #D09EDB #E6CBEB

Accessibility & contrast

On white

3.31
#BA72CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#BA72CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72CA
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72CA#FFFFFF#000000##000000
##BA72CA1.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6588CD
Deuteranopia (green-blind)
#7990C7
Tritanopia (blue-blind)
#BB7D94
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba72ca;
/* rgb */ color: rgb(186, 114, 202);
/* oklch */ color: oklch(66.2% 0.147 320.1);
Tailwind
colors: {
  custom: {
    50: '#d09cda',
    500: '#ba72ca',
    950: '#000000',
  },
}
SCSS
$custom: #ba72ca;
$custom-light: #d09cda;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72ca",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 202
  },
  "hsl": {
    "h": 289.091,
    "s": 45.361,
    "l": 61.961
  },
  "oklch": {
    "l": 0.66169,
    "c": 0.14735,
    "h": 320.1
  },
  "luminance": 0.26738
}

Semantic roles & 50–950 ramp

primary
#BA72CA
secondary
#C2DCBC
accent
#B92D46
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#140E15
muted
#827E83

Preview Lab

Preview with #BA72CA

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

Preview Lab → · Contrast checker → · Palette generator →

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