#BA72DF#BA72DF

#BA72DF is a light, vivid violet. Relative luminance 0.278; OKLCH L 67.2% C 0.170 H 313.1°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#BA72DF
RGBrgb(186, 114, 223)
HSLhsl(280, 63%, 66%)
HSVhsv(280, 49%, 87%)
CMYKcmyk(16.6%, 48.9%, 0%, 12.5%)
CIE-LABlab(59.71, 47.06, -44.57)
CIE-LCHlch(59.71, 64.82, 316.55°)
OKLaboklab(67.22% 0.1163 -0.1241)
OKLCHoklch(67.22% 0.17 313.1)
XYZxyz(39.5841, 27.8024, 73.0789)
Luminance0.2780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72DF #97DF72
analogous
#8372DF #BA72DF #DF72CD
triadic
#BA72DF #DFBA72 #72DFBA
tetradic
#BA72DF #DF8372 #97DF72 #72CDDF
square
#BA72DF #DF8372 #97DF72 #72CDDF
split-complementary
#BA72DF #CDDF72 #72DF83
monochromatic
#8128AF #A240D4 #BA72DF #D2A4EA #EBD6F6

Accessibility & contrast

On white

3.20
#BA72DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#BA72DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72DF
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72DF#FFFFFF#000000##000000
##BA72DF1.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#598CE3
Deuteranopia (green-blind)
#6E92DC
Tritanopia (blue-blind)
#B7839E
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba72df;
/* rgb */ color: rgb(186, 114, 223);
/* oklch */ color: oklch(67.2% 0.170 313.1);
Tailwind
colors: {
  custom: {
    50: '#d19ce9',
    500: '#ba72df',
    950: '#000000',
  },
}
SCSS
$custom: #ba72df;
$custom-light: #d19ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72df",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 223
  },
  "hsl": {
    "h": 279.633,
    "s": 63.006,
    "l": 66.078
  },
  "oklch": {
    "l": 0.67217,
    "c": 0.17012,
    "h": 313.1
  },
  "luminance": 0.27801
}

Semantic roles & 50–950 ramp

primary
#BA72DF
secondary
#D1E8C4
accent
#CB1B56
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA72DF

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

Preview Lab → · Contrast checker → · Palette generator →

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