#BA72FB#BA72FB

#BA72FB is a light, highly saturated violet. Relative luminance 0.294; OKLCH L 68.8% C 0.201 H 306.1°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#BA72FB
RGBrgb(186, 114, 251)
HSLhsl(272, 94%, 72%)
HSVhsv(272, 55%, 98%)
CMYKcmyk(25.9%, 54.6%, 0%, 1.6%)
CIE-LABlab(61.17, 53.22, -57.81)
CIE-LCHlch(61.17, 78.58, 312.63°)
OKLaboklab(68.77% 0.1185 -0.1628)
OKLCHoklch(68.77% 0.201 306.1)
XYZxyz(43.6759, 29.4391, 94.6295)
Luminance0.2944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72FB #B3FB72
analogous
#7672FB #BA72FB #FB72F7
triadic
#BA72FB #FBBA72 #72FBBA
tetradic
#BA72FB #FB7672 #B3FB72 #72F7FB
square
#BA72FB #FB7672 #B3FB72 #72F7FB
split-complementary
#BA72FB #F7FB72 #72FB76
monochromatic
#7F07EC #9D36F9 #BA72FB #D7AEFD #F0E1FE

Accessibility & contrast

On white

3.05
#BA72FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.89
#BA72FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72FB
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72FB#FFFFFF#000000##000000
##BA72FB1.003.056.896.89
#FFFFFF3.051.0021.0021.00
#0000006.8921.001.001.00
##0000006.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4291FF
Deuteranopia (green-blind)
#5B94F8
Tritanopia (blue-blind)
#AF8CAC
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba72fb;
/* rgb */ color: rgb(186, 114, 251);
/* oklch */ color: oklch(68.8% 0.201 306.1);
Tailwind
colors: {
  custom: {
    50: '#d29dfd',
    500: '#ba72fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba72fb;
$custom-light: #d29dfd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72fb",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 251
  },
  "hsl": {
    "h": 271.533,
    "s": 94.483,
    "l": 71.569
  },
  "oklch": {
    "l": 0.68767,
    "c": 0.20133,
    "h": 306.1
  },
  "luminance": 0.29439
}

Semantic roles & 50–950 ramp

primary
#BA72FB
secondary
#E4F6D3
accent
#E6006D
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA72FB

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

Preview Lab → · Contrast checker → · Palette generator →

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