#BA72CB#BA72CB

#BA72CB is a light, vivid purple. Relative luminance 0.268; OKLCH L 66.2% C 0.148 H 319.8°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#BA72CB
RGBrgb(186, 114, 203)
HSLhsl(289, 46%, 62%)
HSVhsv(289, 44%, 80%)
CMYKcmyk(8.4%, 43.8%, 0%, 20.4%)
CIE-LABlab(58.78, 42.92, -34.78)
CIE-LCHlch(58.78, 55.24, 320.98°)
OKLaboklab(66.22% 0.1133 -0.0959)
OKLCHoklch(66.22% 0.148 319.8)
XYZxyz(37.0451, 26.7868, 59.7073)
Luminance0.2679 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72CB #83CB72
analogous
#8D72CB #BA72CB #CB72B0
triadic
#BA72CB #CBBA72 #72CBBA
tetradic
#BA72CB #CB8D72 #83CB72 #72B0CB
square
#BA72CB #CB8D72 #83CB72 #72B0CB
split-complementary
#BA72CB #B0CB72 #72CB8D
monochromatic
#7D348E #A445BB #BA72CB #D09FDB #E6CBEC

Accessibility & contrast

On white

3.30
#BA72CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#BA72CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72CB
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72CB#FFFFFF#000000##000000
##BA72CB1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6588CE
Deuteranopia (green-blind)
#7890C8
Tritanopia (blue-blind)
#BB7D95
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba72cb;
/* rgb */ color: rgb(186, 114, 203);
/* oklch */ color: oklch(66.2% 0.148 319.8);
Tailwind
colors: {
  custom: {
    50: '#d09cdb',
    500: '#ba72cb',
    950: '#000000',
  },
}
SCSS
$custom: #ba72cb;
$custom-light: #d09cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72cb",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 203
  },
  "hsl": {
    "h": 288.539,
    "s": 46.114,
    "l": 62.157
  },
  "oklch": {
    "l": 0.66217,
    "c": 0.14842,
    "h": 319.8
  },
  "luminance": 0.26786
}

Semantic roles & 50–950 ramp

primary
#BA72CB
secondary
#C2DDBC
accent
#B92C47
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#140E15
muted
#827E83

Preview Lab

Preview with #BA72CB

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

Preview Lab → · Contrast checker → · Palette generator →

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