#BA72CD#BA72CD

#BA72CD is a light, vivid purple. Relative luminance 0.269; OKLCH L 66.3% C 0.151 H 319.0°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#BA72CD
RGBrgb(186, 114, 205)
HSLhsl(287, 48%, 63%)
HSVhsv(287, 44%, 80%)
CMYKcmyk(9.3%, 44.4%, 0%, 19.6%)
CIE-LABlab(58.87, 43.32, -35.77)
CIE-LCHlch(58.87, 56.18, 320.45°)
OKLaboklab(66.31% 0.1137 -0.0987)
OKLCHoklch(66.31% 0.151 319)
XYZxyz(37.2850, 26.8828, 60.9706)
Luminance0.2688 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72CD #85CD72
analogous
#8D72CD #BA72CD #CD72B2
triadic
#BA72CD #CDBA72 #72CDBA
tetradic
#BA72CD #CD8D72 #85CD72 #72B2CD
square
#BA72CD #CD8D72 #85CD72 #72B2CD
split-complementary
#BA72CD #B2CD72 #72CD8D
monochromatic
#7E3391 #A445BD #BA72CD #D09FDD #E6CCED

Accessibility & contrast

On white

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

On black

6.38
#BA72CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72CD
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72CD#FFFFFF#000000##000000
##BA72CD1.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6489D0
Deuteranopia (green-blind)
#7790CA
Tritanopia (blue-blind)
#BB7E96
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba72cd;
/* rgb */ color: rgb(186, 114, 205);
/* oklch */ color: oklch(66.3% 0.151 319.0);
Tailwind
colors: {
  custom: {
    50: '#d09cdc',
    500: '#ba72cd',
    950: '#000000',
  },
}
SCSS
$custom: #ba72cd;
$custom-light: #d09cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72cd",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 205
  },
  "hsl": {
    "h": 287.473,
    "s": 47.644,
    "l": 62.549
  },
  "oklch": {
    "l": 0.66313,
    "c": 0.15054,
    "h": 319
  },
  "luminance": 0.26882
}

Semantic roles & 50–950 ramp

primary
#BA72CD
secondary
#C4DEBD
accent
#BB2B49
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #BA72CD

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

Preview Lab → · Contrast checker → · Palette generator →

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