#BA72F8#BA72F8

#BA72F8 is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.6% C 0.198 H 306.7°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#BA72F8
RGBrgb(186, 114, 248)
HSLhsl(272, 91%, 71%)
HSVhsv(272, 54%, 97%)
CMYKcmyk(25%, 54%, 0%, 2.7%)
CIE-LABlab(61.00, 52.54, -56.42)
CIE-LCHlch(61.00, 77.10, 312.96°)
OKLaboklab(68.59% 0.1184 -0.1587)
OKLCHoklch(68.59% 0.198 306.7)
XYZxyz(43.2068, 29.2515, 92.1587)
Luminance0.2925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72F8 #B0F872
analogous
#7772F8 #BA72F8 #F872F3
triadic
#BA72F8 #F8BA72 #72F8BA
tetradic
#BA72F8 #F87772 #B0F872 #72F3F8
square
#BA72F8 #F87772 #B0F872 #72F3F8
split-complementary
#BA72F8 #F3F872 #72F877
monochromatic
#800BE4 #9D38F5 #BA72F8 #D7ACFB #F1E2FE

Accessibility & contrast

On white

3.07
#BA72F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.85
#BA72F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72F8
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72F8#FFFFFF#000000##000000
##BA72F81.003.076.856.85
#FFFFFF3.071.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4591FC
Deuteranopia (green-blind)
#5E94F5
Tritanopia (blue-blind)
#B08BAA
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba72f8;
/* rgb */ color: rgb(186, 114, 248);
/* oklch */ color: oklch(68.6% 0.198 306.7);
Tailwind
colors: {
  custom: {
    50: '#d29dfb',
    500: '#ba72f8',
    950: '#000000',
  },
}
SCSS
$custom: #ba72f8;
$custom-light: #d29dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72f8",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 248
  },
  "hsl": {
    "h": 272.239,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.68593,
    "c": 0.19798,
    "h": 306.7
  },
  "luminance": 0.29251
}

Semantic roles & 50–950 ramp

primary
#BA72F8
secondary
#E2F5D1
accent
#E6006A
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA72F8

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

Preview Lab → · Contrast checker → · Palette generator →

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