#BA72DA#BA72DA

#BA72DA is a light, vivid purple. Relative luminance 0.275; OKLCH L 67.0% C 0.165 H 314.6°. Best body text is #000000 at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#BA72DA
RGBrgb(186, 114, 218)
HSLhsl(282, 58%, 65%)
HSVhsv(282, 48%, 85%)
CMYKcmyk(14.7%, 47.7%, 0%, 14.5%)
CIE-LABlab(59.47, 46.00, -42.15)
CIE-LCHlch(59.47, 62.39, 317.50°)
OKLaboklab(66.96% 0.1157 -0.1171)
OKLCHoklch(66.96% 0.165 314.6)
XYZxyz(38.9199, 27.5367, 69.5810)
Luminance0.2754 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72DA #92DA72
analogous
#8672DA #BA72DA #DA72C6
triadic
#BA72DA #DABA72 #72DABA
tetradic
#BA72DA #DA8672 #92DA72 #72C6DA
square
#BA72DA #DA8672 #92DA72 #72C6DA
split-complementary
#BA72DA #C6DA72 #72DA86
monochromatic
#802CA6 #A242CD #BA72DA #D2A2E7 #E9D3F3

Accessibility & contrast

On white

3.23
#BA72DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.51
#BA72DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72DA
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72DA#FFFFFF#000000##000000
##BA72DA1.003.236.516.51
#FFFFFF3.231.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba72da;
/* rgb */ color: rgb(186, 114, 218);
/* oklch */ color: oklch(67.0% 0.165 314.6);
Tailwind
colors: {
  custom: {
    50: '#d19ce6',
    500: '#ba72da',
    950: '#000000',
  },
}
SCSS
$custom: #ba72da;
$custom-light: #d19ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72da",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 218
  },
  "hsl": {
    "h": 281.538,
    "s": 58.427,
    "l": 65.098
  },
  "oklch": {
    "l": 0.66959,
    "c": 0.16462,
    "h": 314.6
  },
  "luminance": 0.27536
}

Semantic roles & 50–950 ramp

primary
#BA72DA
secondary
#CDE6C2
accent
#C61F53
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA72DA

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

Preview Lab → · Contrast checker → · Palette generator →

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