#BA97CA#BA97CA

#BA97CA is a light, moderate purple. Relative luminance 0.368; OKLCH L 72.6% C 0.082 H 315.1°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#BA97CA
RGBrgb(186, 151, 202)
HSLhsl(281, 32%, 69%)
HSVhsv(281, 25%, 79%)
CMYKcmyk(7.9%, 25.2%, 0%, 20.8%)
CIE-LABlab(67.15, 22.34, -21.29)
CIE-LCHlch(67.15, 30.86, 316.37°)
OKLaboklab(72.56% 0.058 -0.0578)
OKLCHoklch(72.56% 0.082 315.1)
XYZxyz(41.9753, 36.8372, 60.7647)
Luminance0.3684 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97CA #A7CA97
analogous
#A197CA #BA97CA #CA97C1
triadic
#BA97CA #CABA97 #97CABA
tetradic
#BA97CA #CAA197 #A7CA97 #97C1CA
square
#BA97CA #CAA197 #A7CA97 #97C1CA
split-complementary
#BA97CA #C1CA97 #97CAA1
monochromatic
#814E99 #9F6EB5 #BA97CA #D5C0DF #F0E8F3

Accessibility & contrast

On white

2.51
#BA97CA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#BA97CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97CA
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97CA#FFFFFF#000000##000000
##BA97CA1.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#90A1CC
Deuteranopia (green-blind)
#98A4C8
Tritanopia (blue-blind)
#B99DA9
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ba97ca;
/* rgb */ color: rgb(186, 151, 202);
/* oklch */ color: oklch(72.6% 0.082 315.1);
Tailwind
colors: {
  custom: {
    50: '#cfb5da',
    500: '#ba97ca',
    950: '#000000',
  },
}
SCSS
$custom: #ba97ca;
$custom-light: #cfb5da;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97ca",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 202
  },
  "hsl": {
    "h": 281.176,
    "s": 32.484,
    "l": 69.216
  },
  "oklch": {
    "l": 0.72556,
    "c": 0.0819,
    "h": 315.1
  },
  "luminance": 0.36837
}

Semantic roles & 50–950 ramp

primary
#BA97CA
secondary
#DCE6D7
accent
#AB3A5E
background
#FCFBFD
surface
#F9F6FA
border
#D2D0D3
text
#141114
muted
#828083

Preview Lab

Preview with #BA97CA

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

Preview Lab → · Contrast checker → · Palette generator →

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