#BA72F6#BA72F6

#BA72F6 is a light, vivid violet. Relative luminance 0.291; OKLCH L 68.5% C 0.196 H 307.2°. Best body text is #000000 at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#BA72F6
RGBrgb(186, 114, 246)
HSLhsl(273, 88%, 71%)
HSVhsv(273, 54%, 96%)
CMYKcmyk(24.4%, 53.7%, 0%, 3.5%)
CIE-LABlab(60.89, 52.09, -55.49)
CIE-LCHlch(60.89, 76.11, 313.19°)
OKLaboklab(68.48% 0.1183 -0.156)
OKLCHoklch(68.48% 0.196 307.2)
XYZxyz(42.8982, 29.1280, 90.5333)
Luminance0.2913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72F6 #AEF672
analogous
#7872F6 #BA72F6 #F672F0
triadic
#BA72F6 #F6BA72 #72F6BA
tetradic
#BA72F6 #F67872 #AEF672 #72F0F6
square
#BA72F6 #F67872 #AEF672 #72F0F6
split-complementary
#BA72F6 #F0F672 #72F678
monochromatic
#800EDF #9E38F2 #BA72F6 #D6ACFA #F1E2FD

Accessibility & contrast

On white

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

On black

6.83
#BA72F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72F6
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72F6#FFFFFF#000000##000000
##BA72F61.003.086.836.83
#FFFFFF3.081.0021.0021.00
#0000006.8321.001.001.00
##0000006.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4790FA
Deuteranopia (green-blind)
#5F94F3
Tritanopia (blue-blind)
#B18AA9
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba72f6;
/* rgb */ color: rgb(186, 114, 246);
/* oklch */ color: oklch(68.5% 0.196 307.2);
Tailwind
colors: {
  custom: {
    50: '#d29dfa',
    500: '#ba72f6',
    950: '#000000',
  },
}
SCSS
$custom: #ba72f6;
$custom-light: #d29dfa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72f6",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 246
  },
  "hsl": {
    "h": 272.727,
    "s": 88,
    "l": 70.588
  },
  "oklch": {
    "l": 0.68478,
    "c": 0.19574,
    "h": 307.2
  },
  "luminance": 0.29128
}

Semantic roles & 50–950 ramp

primary
#BA72F6
secondary
#E0F4D0
accent
#E50168
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA72F6

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

Preview Lab → · Contrast checker → · Palette generator →

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