#BA72DB#BA72DB

#BA72DB is a light, vivid purple. Relative luminance 0.276; OKLCH L 67.0% C 0.166 H 314.3°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#BA72DB
RGBrgb(186, 114, 219)
HSLhsl(281, 59%, 65%)
HSVhsv(281, 48%, 86%)
CMYKcmyk(15.1%, 47.9%, 0%, 14.1%)
CIE-LABlab(59.52, 46.21, -42.64)
CIE-LCHlch(59.52, 62.87, 317.30°)
OKLaboklab(67.01% 0.1158 -0.1185)
OKLCHoklch(67.01% 0.166 314.3)
XYZxyz(39.0511, 27.5892, 70.2722)
Luminance0.2759 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72DB #93DB72
analogous
#8572DB #BA72DB #DB72C7
triadic
#BA72DB #DBBA72 #72DBBA
tetradic
#BA72DB #DB8572 #93DB72 #72C7DB
square
#BA72DB #DB8572 #93DB72 #72C7DB
split-complementary
#BA72DB #C7DB72 #72DB85
monochromatic
#812BA8 #A241CF #BA72DB #D2A3E7 #EAD4F4

Accessibility & contrast

On white

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

On black

6.52
#BA72DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72DB
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72DB#FFFFFF#000000##000000
##BA72DB1.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C8BDF
Deuteranopia (green-blind)
#7191D8
Tritanopia (blue-blind)
#B8829C
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba72db;
/* rgb */ color: rgb(186, 114, 219);
/* oklch */ color: oklch(67.0% 0.166 314.3);
Tailwind
colors: {
  custom: {
    50: '#d19ce6',
    500: '#ba72db',
    950: '#000000',
  },
}
SCSS
$custom: #ba72db;
$custom-light: #d19ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72db",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 219
  },
  "hsl": {
    "h": 281.143,
    "s": 59.322,
    "l": 65.294
  },
  "oklch": {
    "l": 0.6701,
    "c": 0.16571,
    "h": 314.3
  },
  "luminance": 0.27588
}

Semantic roles & 50–950 ramp

primary
#BA72DB
secondary
#CEE6C3
accent
#C71F53
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA72DB

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

Preview Lab → · Contrast checker → · Palette generator →

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