#BA72CE#BA72CE

#BA72CE is a light, vivid purple. Relative luminance 0.269; OKLCH L 66.4% C 0.152 H 318.7°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#BA72CE
RGBrgb(186, 114, 206)
HSLhsl(287, 48%, 63%)
HSVhsv(287, 45%, 81%)
CMYKcmyk(9.7%, 44.7%, 0%, 19.2%)
CIE-LABlab(58.91, 43.52, -36.26)
CIE-LCHlch(58.91, 56.65, 320.20°)
OKLaboklab(66.36% 0.1138 -0.1001)
OKLCHoklch(66.36% 0.152 318.7)
XYZxyz(37.4061, 26.9312, 61.6084)
Luminance0.2693 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72CE #86CE72
analogous
#8C72CE #BA72CE #CE72B4
triadic
#BA72CE #CEBA72 #72CEBA
tetradic
#BA72CE #CE8C72 #86CE72 #72B4CE
square
#BA72CE #CE8C72 #86CE72 #72B4CE
split-complementary
#BA72CE #B4CE72 #72CE8C
monochromatic
#7E3393 #A445BE #BA72CE #D09FDE #E6CDEE

Accessibility & contrast

On white

3.29
#BA72CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#BA72CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72CE
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72CE#FFFFFF#000000##000000
##BA72CE1.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6389D1
Deuteranopia (green-blind)
#7790CB
Tritanopia (blue-blind)
#BA7E96
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba72ce;
/* rgb */ color: rgb(186, 114, 206);
/* oklch */ color: oklch(66.4% 0.152 318.7);
Tailwind
colors: {
  custom: {
    50: '#d09cdd',
    500: '#ba72ce',
    950: '#000000',
  },
}
SCSS
$custom: #ba72ce;
$custom-light: #d09cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72ce",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 206
  },
  "hsl": {
    "h": 286.957,
    "s": 48.421,
    "l": 62.745
  },
  "oklch": {
    "l": 0.66361,
    "c": 0.15161,
    "h": 318.7
  },
  "luminance": 0.2693
}

Semantic roles & 50–950 ramp

primary
#BA72CE
secondary
#C4DFBD
accent
#BC2A4A
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #BA72CE

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

Preview Lab → · Contrast checker → · Palette generator →

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