#BA72DE#BA72DE

#BA72DE is a light, vivid purple. Relative luminance 0.277; OKLCH L 67.2% C 0.169 H 313.4°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#BA72DE
RGBrgb(186, 114, 222)
HSLhsl(280, 62%, 66%)
HSVhsv(280, 49%, 87%)
CMYKcmyk(16.2%, 48.6%, 0%, 12.9%)
CIE-LABlab(59.66, 46.84, -44.09)
CIE-LCHlch(59.66, 64.33, 316.73°)
OKLaboklab(67.16% 0.1162 -0.1227)
OKLCHoklch(67.16% 0.169 313.4)
XYZxyz(39.4496, 27.7486, 72.3710)
Luminance0.2775 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72DE #96DE72
analogous
#8472DE #BA72DE #DE72CC
triadic
#BA72DE #DEBA72 #72DEBA
tetradic
#BA72DE #DE8472 #96DE72 #72CCDE
square
#BA72DE #DE8472 #96DE72 #72CCDE
split-complementary
#BA72DE #CCDE72 #72DE84
monochromatic
#8129AD #A240D2 #BA72DE #D2A4EA #EBD5F5

Accessibility & contrast

On white

3.21
#BA72DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#BA72DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72DE
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72DE#FFFFFF#000000##000000
##BA72DE1.003.216.556.55
#FFFFFF3.211.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A8CE2
Deuteranopia (green-blind)
#6F92DB
Tritanopia (blue-blind)
#B7839E
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba72de;
/* rgb */ color: rgb(186, 114, 222);
/* oklch */ color: oklch(67.2% 0.169 313.4);
Tailwind
colors: {
  custom: {
    50: '#d19ce9',
    500: '#ba72de',
    950: '#000000',
  },
}
SCSS
$custom: #ba72de;
$custom-light: #d19ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72de",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 222
  },
  "hsl": {
    "h": 280,
    "s": 62.069,
    "l": 65.882
  },
  "oklch": {
    "l": 0.67165,
    "c": 0.16901,
    "h": 313.4
  },
  "luminance": 0.27748
}

Semantic roles & 50–950 ramp

primary
#BA72DE
secondary
#D0E8C4
accent
#CA1C56
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA72DE

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

Preview Lab → · Contrast checker → · Palette generator →

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