#BA91DC#BA91DC

#BA91DC is a light, moderate violet. Relative luminance 0.359; OKLCH L 72.2% C 0.115 H 308.8°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#BA91DC
RGBrgb(186, 145, 220)
HSLhsl(273, 52%, 72%)
HSVhsv(273, 34%, 86%)
CMYKcmyk(15.5%, 34.1%, 0%, 13.7%)
CIE-LABlab(66.41, 29.48, -32.43)
CIE-LCHlch(66.41, 43.82, 312.28°)
OKLaboklab(72.21% 0.0718 -0.0893)
OKLCHoklch(72.21% 0.115 308.8)
XYZxyz(43.2910, 35.8576, 72.3369)
Luminance0.3586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA91DC #B3DC91
analogous
#9591DC #BA91DC #DC91D9
triadic
#BA91DC #DCBA91 #91DCBA
tetradic
#BA91DC #DC9591 #B3DC91 #91D9DC
square
#BA91DC #DC9591 #B3DC91 #91D9DC
split-complementary
#BA91DC #D9DC91 #91DC95
monochromatic
#7F3BB8 #9D63CD #BA91DC #D7BFEB #F0E8F8

Accessibility & contrast

On white

2.57
#BA91DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#BA91DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA91DC
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA91DC#FFFFFF#000000##000000
##BA91DC1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A0DF
Deuteranopia (green-blind)
#8CA2DA
Tritanopia (blue-blind)
#B69CAD
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba91dc;
/* rgb */ color: rgb(186, 145, 220);
/* oklch */ color: oklch(72.2% 0.115 308.8);
Tailwind
colors: {
  custom: {
    50: '#cfb1e7',
    500: '#ba91dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba91dc;
$custom-light: #cfb1e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba91dc",
  "rgb": {
    "r": 186,
    "g": 145,
    "b": 220
  },
  "hsl": {
    "h": 272.8,
    "s": 51.724,
    "l": 71.569
  },
  "oklch": {
    "l": 0.72213,
    "c": 0.11458,
    "h": 308.8
  },
  "luminance": 0.35857
}

Semantic roles & 50–950 ramp

primary
#BA91DC
secondary
#E4EEDB
accent
#BF266C
background
#FCFAFE
surface
#F9F5FC
border
#D2CFD5
text
#141116
muted
#828084

Preview Lab

Preview with #BA91DC

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

Preview Lab → · Contrast checker → · Palette generator →

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