#BA72CF#BA72CF

#BA72CF is a light, vivid purple. Relative luminance 0.270; OKLCH L 66.4% C 0.153 H 318.3°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#BA72CF
RGBrgb(186, 114, 207)
HSLhsl(286, 49%, 63%)
HSVhsv(286, 45%, 81%)
CMYKcmyk(10.1%, 44.9%, 0%, 18.8%)
CIE-LABlab(58.96, 43.73, -36.76)
CIE-LCHlch(58.96, 57.12, 319.95°)
OKLaboklab(66.41% 0.114 -0.1016)
OKLCHoklch(66.41% 0.153 318.3)
XYZxyz(37.5280, 26.9799, 62.2502)
Luminance0.2698 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72CF #87CF72
analogous
#8C72CF #BA72CF #CF72B5
triadic
#BA72CF #CFBA72 #72CFBA
tetradic
#BA72CF #CF8C72 #87CF72 #72B5CF
square
#BA72CF #CF8C72 #87CF72 #72B5CF
split-complementary
#BA72CF #B5CF72 #72CF8C
monochromatic
#7E3294 #A444BF #BA72CF #D0A0DF #E7CDEE

Accessibility & contrast

On white

3.28
#BA72CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#BA72CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72CF
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72CF#FFFFFF#000000##000000
##BA72CF1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6389D2
Deuteranopia (green-blind)
#7790CC
Tritanopia (blue-blind)
#BA7E97
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba72cf;
/* rgb */ color: rgb(186, 114, 207);
/* oklch */ color: oklch(66.4% 0.153 318.3);
Tailwind
colors: {
  custom: {
    50: '#d09cde',
    500: '#ba72cf',
    950: '#000000',
  },
}
SCSS
$custom: #ba72cf;
$custom-light: #d09cde;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72cf",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 207
  },
  "hsl": {
    "h": 286.452,
    "s": 49.206,
    "l": 62.941
  },
  "oklch": {
    "l": 0.6641,
    "c": 0.15268,
    "h": 318.3
  },
  "luminance": 0.26979
}

Semantic roles & 50–950 ramp

primary
#BA72CF
secondary
#C5DFBE
accent
#BD294A
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #BA72CF

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

Preview Lab → · Contrast checker → · Palette generator →

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