#BA97DB#BA97DB

#BA97DB is a light, moderate violet. Relative luminance 0.377; OKLCH L 73.3% C 0.103 H 307.5°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#BA97DB
RGBrgb(186, 151, 219)
HSLhsl(271, 49%, 73%)
HSVhsv(271, 31%, 86%)
CMYKcmyk(15.1%, 31.1%, 0%, 14.1%)
CIE-LABlab(67.79, 25.92, -29.74)
CIE-LCHlch(67.79, 39.45, 311.07°)
OKLaboklab(73.25% 0.0628 -0.0817)
OKLCHoklch(73.25% 0.103 307.5)
XYZxyz(44.1001, 37.6871, 71.9552)
Luminance0.3769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97DB #B8DB97
analogous
#9897DB #BA97DB #DB97DA
triadic
#BA97DB #DBBA97 #97DBBA
tetradic
#BA97DB #DB9897 #B8DB97 #97DADB
square
#BA97DB #DB9897 #B8DB97 #97DADB
split-complementary
#BA97DB #DADB97 #97DB98
monochromatic
#7E40B8 #9C6ACB #BA97DB #D8C4EB #F0E8F7

Accessibility & contrast

On white

2.46
#BA97DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#BA97DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97DB
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97DB#FFFFFF#000000##000000
##BA97DB1.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AA4DE
Deuteranopia (green-blind)
#91A6D9
Tritanopia (blue-blind)
#B6A1B0
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #ba97db;
/* rgb */ color: rgb(186, 151, 219);
/* oklch */ color: oklch(73.3% 0.103 307.5);
Tailwind
colors: {
  custom: {
    50: '#cfb6e6',
    500: '#ba97db',
    950: '#000000',
  },
}
SCSS
$custom: #ba97db;
$custom-light: #cfb6e6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97db",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 219
  },
  "hsl": {
    "h": 270.882,
    "s": 48.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.73251,
    "c": 0.10304,
    "h": 307.5
  },
  "luminance": 0.37687
}

Semantic roles & 50–950 ramp

primary
#BA97DB
secondary
#E5EEDD
accent
#BC2A71
background
#FCFBFE
surface
#F9F6FC
border
#D2D0D5
text
#141116
muted
#828084

Preview Lab

Preview with #BA97DB

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

Preview Lab → · Contrast checker → · Palette generator →

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