#BA72DC#BA72DC

#BA72DC is a light, vivid purple. Relative luminance 0.276; OKLCH L 67.1% C 0.167 H 314.0°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#BA72DC
RGBrgb(186, 114, 220)
HSLhsl(281, 60%, 65%)
HSVhsv(281, 48%, 86%)
CMYKcmyk(15.5%, 48.2%, 0%, 13.7%)
CIE-LABlab(59.56, 46.42, -43.12)
CIE-LCHlch(59.56, 63.36, 317.11°)
OKLaboklab(67.06% 0.1159 -0.1199)
OKLCHoklch(67.06% 0.167 314)
XYZxyz(39.1832, 27.6420, 70.9676)
Luminance0.2764 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72DC #94DC72
analogous
#8572DC #BA72DC #DC72C9
triadic
#BA72DC #DCBA72 #72DCBA
tetradic
#BA72DC #DC8572 #94DC72 #72C9DC
square
#BA72DC #DC8572 #94DC72 #72C9DC
split-complementary
#BA72DC #C9DC72 #72DC85
monochromatic
#812AAA #A241D0 #BA72DC #D2A3E8 #EAD4F4

Accessibility & contrast

On white

3.22
#BA72DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#BA72DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72DC
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72DC#FFFFFF#000000##000000
##BA72DC1.003.226.536.53
#FFFFFF3.221.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B8BE0
Deuteranopia (green-blind)
#7091D9
Tritanopia (blue-blind)
#B7829D
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba72dc;
/* rgb */ color: rgb(186, 114, 220);
/* oklch */ color: oklch(67.1% 0.167 314.0);
Tailwind
colors: {
  custom: {
    50: '#d19ce7',
    500: '#ba72dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba72dc;
$custom-light: #d19ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72dc",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 220
  },
  "hsl": {
    "h": 280.755,
    "s": 60.227,
    "l": 65.49
  },
  "oklch": {
    "l": 0.67061,
    "c": 0.16682,
    "h": 314
  },
  "luminance": 0.27641
}

Semantic roles & 50–950 ramp

primary
#BA72DC
secondary
#CFE7C3
accent
#C81E54
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA72DC

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

Preview Lab → · Contrast checker → · Palette generator →

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