#BA72EB#BA72EB

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

Color values

HEX#BA72EB
RGBrgb(186, 114, 235)
HSLhsl(276, 75%, 68%)
HSVhsv(276, 51%, 92%)
CMYKcmyk(20.9%, 51.5%, 0%, 7.8%)
CIE-LABlab(60.31, 49.65, -50.32)
CIE-LCHlch(60.31, 70.69, 314.62°)
OKLaboklab(67.86% 0.1175 -0.1409)
OKLCHoklch(67.86% 0.183 309.8)
XYZxyz(41.2596, 28.4726, 81.9034)
Luminance0.2847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72EB #A3EB72
analogous
#7D72EB #BA72EB #EB72E0
triadic
#BA72EB #EBBA72 #72EBBA
tetradic
#BA72EB #EB7D72 #A3EB72 #72E0EB
square
#BA72EB #EB7D72 #A3EB72 #72E0EB
split-complementary
#BA72EB #E0EB72 #72EB7D
monochromatic
#811CC6 #A03CE3 #BA72EB #D4A8F3 #EEDDFA

Accessibility & contrast

On white

3.14
#BA72EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.69
#BA72EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72EB
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72EB#FFFFFF#000000##000000
##BA72EB1.003.146.696.69
#FFFFFF3.141.0021.0021.00
#0000006.6921.001.001.00
##0000006.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#518EEF
Deuteranopia (green-blind)
#6793E8
Tritanopia (blue-blind)
#B487A4
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba72eb;
/* rgb */ color: rgb(186, 114, 235);
/* oklch */ color: oklch(67.9% 0.183 309.8);
Tailwind
colors: {
  custom: {
    50: '#d19df2',
    500: '#ba72eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba72eb;
$custom-light: #d19df2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72eb",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 235
  },
  "hsl": {
    "h": 275.702,
    "s": 75.155,
    "l": 68.431
  },
  "oklch": {
    "l": 0.67861,
    "c": 0.18345,
    "h": 309.8
  },
  "luminance": 0.28472
}

Semantic roles & 50–950 ramp

primary
#BA72EB
secondary
#D9EFCA
accent
#D70E60
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA72EB

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

Preview Lab → · Contrast checker → · Palette generator →

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