#BA72FE#BA72FE

#BA72FE is a light, highly saturated violet. Relative luminance 0.296; OKLCH L 68.9% C 0.205 H 305.4°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#BA72FE
RGBrgb(186, 114, 254)
HSLhsl(271, 99%, 72%)
HSVhsv(271, 55%, 100%)
CMYKcmyk(26.8%, 55.1%, 0%, 0.4%)
CIE-LABlab(61.33, 53.90, -59.20)
CIE-LCHlch(61.33, 80.06, 312.32°)
OKLaboklab(68.94% 0.1186 -0.1668)
OKLCHoklch(68.94% 0.205 305.4)
XYZxyz(44.1526, 29.6298, 97.1398)
Luminance0.2963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72FE #B6FE72
analogous
#7472FE #BA72FE #FE72FC
triadic
#BA72FE #FEBA72 #72FEBA
tetradic
#BA72FE #FE7472 #B6FE72 #72FCFE
square
#BA72FE #FE7472 #B6FE72 #72FCFE
split-complementary
#BA72FE #FCFE72 #72FE74
monochromatic
#7E02F4 #9C35FE #BA72FE #D8AFFE #F0E1FF

Accessibility & contrast

On white

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

On black

6.93
#BA72FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72FE
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72FE#FFFFFF#000000##000000
##BA72FE1.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E92FF
Deuteranopia (green-blind)
#5994FB
Tritanopia (blue-blind)
#AF8DAD
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba72fe;
/* rgb */ color: rgb(186, 114, 254);
/* oklch */ color: oklch(68.9% 0.205 305.4);
Tailwind
colors: {
  custom: {
    50: '#d29dff',
    500: '#ba72fe',
    950: '#000000',
  },
}
SCSS
$custom: #ba72fe;
$custom-light: #d29dff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72fe",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 254
  },
  "hsl": {
    "h": 270.857,
    "s": 98.592,
    "l": 72.157
  },
  "oklch": {
    "l": 0.68943,
    "c": 0.20469,
    "h": 305.4
  },
  "luminance": 0.29629
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA72FE

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

Preview Lab → · Contrast checker → · Palette generator →

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