#BA91DB#BA91DB

#BA91DB is a light, moderate violet. Relative luminance 0.358; OKLCH L 72.2% C 0.113 H 309.1°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#BA91DB
RGBrgb(186, 145, 219)
HSLhsl(273, 51%, 71%)
HSVhsv(273, 34%, 86%)
CMYKcmyk(15.1%, 33.8%, 0%, 14.1%)
CIE-LABlab(66.37, 29.26, -31.93)
CIE-LCHlch(66.37, 43.32, 312.50°)
OKLaboklab(72.17% 0.0715 -0.0879)
OKLCHoklch(72.17% 0.113 309.1)
XYZxyz(43.1589, 35.8048, 71.6415)
Luminance0.3580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA91DB #B2DB91
analogous
#9591DB #BA91DB #DB91D7
triadic
#BA91DB #DBBA91 #91DBBA
tetradic
#BA91DB #DB9591 #B2DB91 #91D7DB
square
#BA91DB #DB9591 #B2DB91 #91D7DB
split-complementary
#BA91DB #D7DB91 #91DB95
monochromatic
#7F3CB6 #9D63CC #BA91DB #D7BFEA #F1E8F7

Accessibility & contrast

On white

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

On black

8.16
#BA91DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA91DB
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA91DB#FFFFFF#000000##000000
##BA91DB1.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A0DE
Deuteranopia (green-blind)
#8CA2D9
Tritanopia (blue-blind)
#B69BAC
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba91db;
/* rgb */ color: rgb(186, 145, 219);
/* oklch */ color: oklch(72.2% 0.113 309.1);
Tailwind
colors: {
  custom: {
    50: '#cfb1e6',
    500: '#ba91db',
    950: '#000000',
  },
}
SCSS
$custom: #ba91db;
$custom-light: #cfb1e6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba91db",
  "rgb": {
    "r": 186,
    "g": 145,
    "b": 219
  },
  "hsl": {
    "h": 273.243,
    "s": 50.685,
    "l": 71.373
  },
  "oklch": {
    "l": 0.72169,
    "c": 0.11334,
    "h": 309.1
  },
  "luminance": 0.35804
}

Semantic roles & 50–950 ramp

primary
#BA91DB
secondary
#E3EEDA
accent
#BE276B
background
#FCFAFE
surface
#F9F5FC
border
#D2CFD5
text
#141116
muted
#828084

Preview Lab

Preview with #BA91DB

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

Preview Lab → · Contrast checker → · Palette generator →

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