#BA96DB#BA96DB

#BA96DB is a light, moderate violet. Relative luminance 0.374; OKLCH L 73.1% C 0.105 H 307.8°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#BA96DB
RGBrgb(186, 150, 219)
HSLhsl(271, 49%, 72%)
HSVhsv(271, 32%, 86%)
CMYKcmyk(15.1%, 31.5%, 0%, 14.1%)
CIE-LABlab(67.55, 26.48, -30.11)
CIE-LCHlch(67.55, 40.10, 311.33°)
OKLaboklab(73.07% 0.0642 -0.0827)
OKLCHoklch(73.07% 0.105 307.8)
XYZxyz(43.9398, 37.3666, 71.9018)
Luminance0.3737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA96DB #B7DB96
analogous
#9796DB #BA96DB #DB96DA
triadic
#BA96DB #DBBA96 #96DBBA
tetradic
#BA96DB #DB9796 #B7DB96 #96DADB
square
#BA96DB #DB9796 #B7DB96 #96DADB
split-complementary
#BA96DB #DADB96 #96DB97
monochromatic
#7E3FB8 #9C68CB #BA96DB #D8C4EB #F0E8F7

Accessibility & contrast

On white

2.48
#BA96DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.47
#BA96DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA96DB
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA96DB#FFFFFF#000000##000000
##BA96DB1.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A3DE
Deuteranopia (green-blind)
#91A5D9
Tritanopia (blue-blind)
#B6A0AF
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #ba96db;
/* rgb */ color: rgb(186, 150, 219);
/* oklch */ color: oklch(73.1% 0.105 307.8);
Tailwind
colors: {
  custom: {
    50: '#cfb5e6',
    500: '#ba96db',
    950: '#000000',
  },
}
SCSS
$custom: #ba96db;
$custom-light: #cfb5e6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba96db",
  "rgb": {
    "r": 186,
    "g": 150,
    "b": 219
  },
  "hsl": {
    "h": 271.304,
    "s": 48.936,
    "l": 72.353
  },
  "oklch": {
    "l": 0.73069,
    "c": 0.10476,
    "h": 307.8
  },
  "luminance": 0.37366
}

Semantic roles & 50–950 ramp

primary
#BA96DB
secondary
#E5EEDD
accent
#BC2970
background
#FCFBFE
surface
#F9F6FC
border
#D2D0D5
text
#141116
muted
#828084

Preview Lab

Preview with #BA96DB

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

Preview Lab → · Contrast checker → · Palette generator →

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