#BA72EC#BA72EC

#BA72EC is a light, vivid violet. Relative luminance 0.285; OKLCH L 67.9% C 0.185 H 309.6°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#BA72EC
RGBrgb(186, 114, 236)
HSLhsl(275, 76%, 69%)
HSVhsv(275, 52%, 93%)
CMYKcmyk(21.2%, 51.7%, 0%, 7.5%)
CIE-LABlab(60.37, 49.87, -50.79)
CIE-LCHlch(60.37, 71.18, 314.48°)
OKLaboklab(67.92% 0.1176 -0.1422)
OKLCHoklch(67.92% 0.185 309.6)
XYZxyz(41.4045, 28.5305, 82.6664)
Luminance0.2853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72EC #A4EC72
analogous
#7D72EC #BA72EC #EC72E1
triadic
#BA72EC #ECBA72 #72ECBA
tetradic
#BA72EC #EC7D72 #A4EC72 #72E1EC
square
#BA72EC #EC7D72 #A4EC72 #72E1EC
split-complementary
#BA72EC #E1EC72 #72EC7D
monochromatic
#811BC9 #A03CE5 #BA72EC #D4A8F3 #EFDEFB

Accessibility & contrast

On white

3.13
#BA72EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#BA72EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72EC
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72EC#FFFFFF#000000##000000
##BA72EC1.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#508EF0
Deuteranopia (green-blind)
#6693E9
Tritanopia (blue-blind)
#B487A4
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba72ec;
/* rgb */ color: rgb(186, 114, 236);
/* oklch */ color: oklch(67.9% 0.185 309.6);
Tailwind
colors: {
  custom: {
    50: '#d19df3',
    500: '#ba72ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba72ec;
$custom-light: #d19df3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72ec",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 236
  },
  "hsl": {
    "h": 275.41,
    "s": 76.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.67916,
    "c": 0.18457,
    "h": 309.6
  },
  "luminance": 0.2853
}

Semantic roles & 50–950 ramp

primary
#BA72EC
secondary
#DAEFCB
accent
#D80D60
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA72EC

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

Preview Lab → · Contrast checker → · Palette generator →

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