#BA72EF#BA72EF

#BA72EF is a light, vivid violet. Relative luminance 0.287; OKLCH L 68.1% C 0.188 H 308.8°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#BA72EF
RGBrgb(186, 114, 239)
HSLhsl(275, 80%, 69%)
HSVhsv(275, 52%, 94%)
CMYKcmyk(22.2%, 52.3%, 0%, 6.3%)
CIE-LABlab(60.52, 50.53, -52.21)
CIE-LCHlch(60.52, 72.66, 314.07°)
OKLaboklab(68.08% 0.1178 -0.1464)
OKLCHoklch(68.08% 0.188 308.8)
XYZxyz(41.8440, 28.7063, 84.9812)
Luminance0.2871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72EF #A7EF72
analogous
#7C72EF #BA72EF #EF72E6
triadic
#BA72EF #EFBA72 #72EFBA
tetradic
#BA72EF #EF7C72 #A7EF72 #72E6EF
square
#BA72EF #EF7C72 #A7EF72 #72E6EF
split-complementary
#BA72EF #E6EF72 #72EF7C
monochromatic
#8118CF #9F3BE9 #BA72EF #D5A9F5 #F0E0FB

Accessibility & contrast

On white

3.12
#BA72EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.74
#BA72EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72EF
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72EF#FFFFFF#000000##000000
##BA72EF1.003.126.746.74
#FFFFFF3.121.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8FF3
Deuteranopia (green-blind)
#6493EC
Tritanopia (blue-blind)
#B388A6
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba72ef;
/* rgb */ color: rgb(186, 114, 239);
/* oklch */ color: oklch(68.1% 0.188 308.8);
Tailwind
colors: {
  custom: {
    50: '#d19df5',
    500: '#ba72ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba72ef;
$custom-light: #d19df5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72ef",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 239
  },
  "hsl": {
    "h": 274.56,
    "s": 79.618,
    "l": 69.216
  },
  "oklch": {
    "l": 0.68082,
    "c": 0.18791,
    "h": 308.8
  },
  "luminance": 0.28706
}

Semantic roles & 50–950 ramp

primary
#BA72EF
secondary
#DCF1CC
accent
#DC0A63
background
#FDF9FF
surface
#FAF2FE
border
#D3CCD6
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA72EF

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

Preview Lab → · Contrast checker → · Palette generator →

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