#BA97BC#BA97BC

#BA97BC is a light, moderate purple. Relative luminance 0.362; OKLCH L 72.0% C 0.066 H 324.5°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#BA97BC
RGBrgb(186, 151, 188)
HSLhsl(297, 22%, 66%)
HSVhsv(297, 20%, 74%)
CMYKcmyk(1.1%, 19.7%, 0%, 26.3%)
CIE-LABlab(66.68, 19.56, -14.21)
CIE-LCHlch(66.68, 24.18, 323.99°)
OKLaboklab(72.03% 0.0535 -0.0382)
OKLCHoklch(72.03% 0.066 324.5)
XYZxyz(40.3923, 36.2040, 52.4275)
Luminance0.3620 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97BC #99BC97
analogous
#A897BC #BA97BC #BC97AC
triadic
#BA97BC #BCBA97 #97BCBA
tetradic
#BA97BC #BCA897 #99BC97 #97ACBC
square
#BA97BC #BCA897 #99BC97 #97ACBC
split-complementary
#BA97BC #ACBC97 #97BCA8
monochromatic
#815584 #A172A4 #BA97BC #D3BCD4 #EBE1EC

Accessibility & contrast

On white

2.55
#BA97BC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#BA97BC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97BC
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97BC#FFFFFF#000000##000000
##BA97BC1.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#94A0BE
Deuteranopia (green-blind)
#9CA4BB
Tritanopia (blue-blind)
#BC9AA4
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ba97bc;
/* rgb */ color: rgb(186, 151, 188);
/* oklch */ color: oklch(72.0% 0.066 324.5);
Tailwind
colors: {
  custom: {
    50: '#cfb5d0',
    500: '#ba97bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba97bc;
$custom-light: #cfb5d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97bc",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 188
  },
  "hsl": {
    "h": 296.757,
    "s": 21.637,
    "l": 66.471
  },
  "oklch": {
    "l": 0.72029,
    "c": 0.06576,
    "h": 324.5
  },
  "luminance": 0.36203
}

Semantic roles & 50–950 ramp

primary
#BA97BC
secondary
#D2DDD1
accent
#A0454A
background
#FCFBFC
surface
#F9F6F9
border
#D2D0D2
text
#131114
muted
#828082

Preview Lab

Preview with #BA97BC

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

Preview Lab → · Contrast checker → · Palette generator →

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