#BA72FF#BA72FF

#BA72FF is a light, highly saturated violet. Relative luminance 0.297; OKLCH L 69.0% C 0.206 H 305.2°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#BA72FF
RGBrgb(186, 114, 255)
HSLhsl(271, 100%, 72%)
HSVhsv(271, 55%, 100%)
CMYKcmyk(27.1%, 55.3%, 0%, 0%)
CIE-LABlab(61.39, 54.13, -59.66)
CIE-LCHlch(61.39, 80.56, 312.22°)
OKLaboklab(69% 0.1187 -0.1682)
OKLCHoklch(69% 0.206 305.2)
XYZxyz(44.3131, 29.6940, 97.9854)
Luminance0.2969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72FF #B7FF72
analogous
#7372FF #BA72FF #FF72FE
triadic
#BA72FF #FFBA72 #72FFBA
tetradic
#BA72FF #FF7372 #B7FF72 #72FEFF
square
#BA72FF #FF7372 #B7FF72 #72FEFF
split-complementary
#BA72FF #FEFF72 #72FF73
monochromatic
#7E00F7 #9C35FF #BA72FF #D8AFFF #F0E0FF

Accessibility & contrast

On white

3.03
#BA72FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.94
#BA72FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72FF
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72FF#FFFFFF#000000##000000
##BA72FF1.003.036.946.94
#FFFFFF3.031.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D92FF
Deuteranopia (green-blind)
#5894FC
Tritanopia (blue-blind)
#AE8DAE
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba72ff;
/* rgb */ color: rgb(186, 114, 255);
/* oklch */ color: oklch(69.0% 0.206 305.2);
Tailwind
colors: {
  custom: {
    50: '#d29dff',
    500: '#ba72ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba72ff;
$custom-light: #d29dff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72ff",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 255
  },
  "hsl": {
    "h": 270.638,
    "s": 100,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69002,
    "c": 0.20581,
    "h": 305.2
  },
  "luminance": 0.29694
}

Semantic roles & 50–950 ramp

primary
#BA72FF
secondary
#E5F7D4
accent
#E60070
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA72FF

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

Preview Lab → · Contrast checker → · Palette generator →

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