#BA72F5#BA72F5

#BA72F5 is a light, vivid violet. Relative luminance 0.291; OKLCH L 68.4% C 0.195 H 307.4°. Best body text is #000000 at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#BA72F5
RGBrgb(186, 114, 245)
HSLhsl(273, 87%, 70%)
HSVhsv(273, 53%, 96%)
CMYKcmyk(24.1%, 53.5%, 0%, 3.9%)
CIE-LABlab(60.84, 51.87, -55.02)
CIE-LCHlch(60.84, 75.62, 313.31°)
OKLaboklab(68.42% 0.1182 -0.1546)
OKLCHoklch(68.42% 0.195 307.4)
XYZxyz(42.7451, 29.0668, 89.7271)
Luminance0.2907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72F5 #ADF572
analogous
#7872F5 #BA72F5 #F572EF
triadic
#BA72F5 #F5BA72 #72F5BA
tetradic
#BA72F5 #F57872 #ADF572 #72EFF5
square
#BA72F5 #F57872 #ADF572 #72EFF5
split-complementary
#BA72F5 #EFF572 #72F578
monochromatic
#8010DD #9E39F1 #BA72F5 #D6ABF9 #F1E2FD

Accessibility & contrast

On white

3.08
#BA72F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.81
#BA72F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72F5
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72F5#FFFFFF#000000##000000
##BA72F51.003.086.816.81
#FFFFFF3.081.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4890F9
Deuteranopia (green-blind)
#6094F2
Tritanopia (blue-blind)
#B18AA9
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba72f5;
/* rgb */ color: rgb(186, 114, 245);
/* oklch */ color: oklch(68.4% 0.195 307.4);
Tailwind
colors: {
  custom: {
    50: '#d29df9',
    500: '#ba72f5',
    950: '#000000',
  },
}
SCSS
$custom: #ba72f5;
$custom-light: #d29df9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72f5",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 245
  },
  "hsl": {
    "h": 272.977,
    "s": 86.755,
    "l": 70.392
  },
  "oklch": {
    "l": 0.68421,
    "c": 0.19463,
    "h": 307.4
  },
  "luminance": 0.29066
}

Semantic roles & 50–950 ramp

primary
#BA72F5
secondary
#E0F3CF
accent
#E30268
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA72F5

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

Preview Lab → · Contrast checker → · Palette generator →

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