#BA72F9#BA72F9

#BA72F9 is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.7% C 0.199 H 306.5°. Best body text is #000000 at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#BA72F9
RGBrgb(186, 114, 249)
HSLhsl(272, 92%, 71%)
HSVhsv(272, 54%, 98%)
CMYKcmyk(25.3%, 54.2%, 0%, 2.4%)
CIE-LABlab(61.06, 52.77, -56.89)
CIE-LCHlch(61.06, 77.59, 312.85°)
OKLaboklab(68.65% 0.1184 -0.16)
OKLCHoklch(68.65% 0.199 306.5)
XYZxyz(43.3623, 29.3137, 92.9779)
Luminance0.2931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72F9 #B1F972
analogous
#7672F9 #BA72F9 #F972F5
triadic
#BA72F9 #F9BA72 #72F9BA
tetradic
#BA72F9 #F97672 #B1F972 #72F5F9
square
#BA72F9 #F97672 #B1F972 #72F5F9
split-complementary
#BA72F9 #F5F972 #72F976
monochromatic
#800AE7 #9D37F7 #BA72F9 #D7ADFB #F1E2FE

Accessibility & contrast

On white

3.06
#BA72F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.86
#BA72F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72F9
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72F9#FFFFFF#000000##000000
##BA72F91.003.066.866.86
#FFFFFF3.061.0021.0021.00
#0000006.8621.001.001.00
##0000006.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4491FD
Deuteranopia (green-blind)
#5D94F6
Tritanopia (blue-blind)
#B08BAB
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba72f9;
/* rgb */ color: rgb(186, 114, 249);
/* oklch */ color: oklch(68.7% 0.199 306.5);
Tailwind
colors: {
  custom: {
    50: '#d29dfc',
    500: '#ba72f9',
    950: '#000000',
  },
}
SCSS
$custom: #ba72f9;
$custom-light: #d29dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72f9",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 249
  },
  "hsl": {
    "h": 272,
    "s": 91.837,
    "l": 71.176
  },
  "oklch": {
    "l": 0.68651,
    "c": 0.1991,
    "h": 306.5
  },
  "luminance": 0.29313
}

Semantic roles & 50–950 ramp

primary
#BA72F9
secondary
#E2F5D2
accent
#E6006B
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA72F9

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

Preview Lab → · Contrast checker → · Palette generator →

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