#BA72FC#BA72FC

#BA72FC is a light, highly saturated violet. Relative luminance 0.295; OKLCH L 68.8% C 0.202 H 305.8°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#BA72FC
RGBrgb(186, 114, 252)
HSLhsl(271, 96%, 72%)
HSVhsv(271, 55%, 99%)
CMYKcmyk(26.2%, 54.8%, 0%, 1.2%)
CIE-LABlab(61.22, 53.45, -58.28)
CIE-LCHlch(61.22, 79.08, 312.52°)
OKLaboklab(68.83% 0.1186 -0.1641)
OKLCHoklch(68.83% 0.202 305.8)
XYZxyz(43.8340, 29.5023, 95.4619)
Luminance0.2950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72FC #B4FC72
analogous
#7572FC #BA72FC #FC72F9
triadic
#BA72FC #FCBA72 #72FCBA
tetradic
#BA72FC #FC7572 #B4FC72 #72F9FC
square
#BA72FC #FC7572 #B4FC72 #72F9FC
split-complementary
#BA72FC #F9FC72 #72FC75
monochromatic
#7F05EF #9D36FB #BA72FC #D7AEFD #F0E1FE

Accessibility & contrast

On white

3.04
#BA72FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#BA72FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72FC
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72FC#FFFFFF#000000##000000
##BA72FC1.003.046.906.90
#FFFFFF3.041.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4191FF
Deuteranopia (green-blind)
#5A94F9
Tritanopia (blue-blind)
#AF8CAC
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba72fc;
/* rgb */ color: rgb(186, 114, 252);
/* oklch */ color: oklch(68.8% 0.202 305.8);
Tailwind
colors: {
  custom: {
    50: '#d29dfe',
    500: '#ba72fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba72fc;
$custom-light: #d29dfe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72fc",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 252
  },
  "hsl": {
    "h": 271.304,
    "s": 95.833,
    "l": 71.765
  },
  "oklch": {
    "l": 0.68825,
    "c": 0.20246,
    "h": 305.8
  },
  "luminance": 0.29502
}

Semantic roles & 50–950 ramp

primary
#BA72FC
secondary
#E4F6D3
accent
#E6006E
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA72FC

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

Preview Lab → · Contrast checker → · Palette generator →

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