#BA72F7#BA72F7

#BA72F7 is a light, vivid violet. Relative luminance 0.292; OKLCH L 68.5% C 0.197 H 306.9°. Best body text is #000000 at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#BA72F7
RGBrgb(186, 114, 247)
HSLhsl(272, 89%, 71%)
HSVhsv(272, 54%, 97%)
CMYKcmyk(24.7%, 53.8%, 0%, 3.1%)
CIE-LABlab(60.95, 52.32, -55.96)
CIE-LCHlch(60.95, 76.60, 313.07°)
OKLaboklab(68.54% 0.1183 -0.1573)
OKLCHoklch(68.54% 0.197 306.9)
XYZxyz(43.0521, 29.1896, 91.3438)
Luminance0.2919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72F7 #AFF772
analogous
#7772F7 #BA72F7 #F772F2
triadic
#BA72F7 #F7BA72 #72F7BA
tetradic
#BA72F7 #F77772 #AFF772 #72F2F7
square
#BA72F7 #F77772 #AFF772 #72F2F7
split-complementary
#BA72F7 #F2F772 #72F777
monochromatic
#800DE2 #9E38F4 #BA72F7 #D6ACFA #F1E2FD

Accessibility & contrast

On white

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

On black

6.84
#BA72F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72F7
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72F7#FFFFFF#000000##000000
##BA72F71.003.076.846.84
#FFFFFF3.071.0021.0021.00
#0000006.8421.001.001.00
##0000006.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4690FB
Deuteranopia (green-blind)
#5E94F4
Tritanopia (blue-blind)
#B18AAA
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba72f7;
/* rgb */ color: rgb(186, 114, 247);
/* oklch */ color: oklch(68.5% 0.197 306.9);
Tailwind
colors: {
  custom: {
    50: '#d29dfa',
    500: '#ba72f7',
    950: '#000000',
  },
}
SCSS
$custom: #ba72f7;
$custom-light: #d29dfa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72f7",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 247
  },
  "hsl": {
    "h": 272.481,
    "s": 89.262,
    "l": 70.784
  },
  "oklch": {
    "l": 0.68535,
    "c": 0.19686,
    "h": 306.9
  },
  "luminance": 0.29189
}

Semantic roles & 50–950 ramp

primary
#BA72F7
secondary
#E1F4D1
accent
#E60069
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA72F7

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

Preview Lab → · Contrast checker → · Palette generator →

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