#BA97BD#BA97BD

#BA97BD is a light, moderate purple. Relative luminance 0.362; OKLCH L 72.1% C 0.067 H 323.7°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#BA97BD
RGBrgb(186, 151, 189)
HSLhsl(295, 22%, 67%)
HSVhsv(295, 20%, 74%)
CMYKcmyk(1.6%, 20.1%, 0%, 25.9%)
CIE-LABlab(66.71, 19.75, -14.72)
CIE-LCHlch(66.71, 24.63, 323.30°)
OKLaboklab(72.07% 0.0539 -0.0396)
OKLCHoklch(72.07% 0.067 323.7)
XYZxyz(40.5005, 36.2473, 52.9972)
Luminance0.3625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97BD #9ABD97
analogous
#A797BD #BA97BD #BD97AD
triadic
#BA97BD #BDBA97 #97BDBA
tetradic
#BA97BD #BDA797 #9ABD97 #97ADBD
square
#BA97BD #BDA797 #9ABD97 #97ADBD
split-complementary
#BA97BD #ADBD97 #97BDA7
monochromatic
#815485 #A172A5 #BA97BD #D3BCD5 #ECE2ED

Accessibility & contrast

On white

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

On black

8.25
#BA97BD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97BD
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97BD#FFFFFF#000000##000000
##BA97BD1.002.558.258.25
#FFFFFF2.551.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba97bd;
/* rgb */ color: rgb(186, 151, 189);
/* oklch */ color: oklch(72.1% 0.067 323.7);
Tailwind
colors: {
  custom: {
    50: '#cfb5d1',
    500: '#ba97bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba97bd;
$custom-light: #cfb5d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97bd",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 189
  },
  "hsl": {
    "h": 295.263,
    "s": 22.353,
    "l": 66.667
  },
  "oklch": {
    "l": 0.72065,
    "c": 0.06685,
    "h": 323.7
  },
  "luminance": 0.36246
}

Semantic roles & 50–950 ramp

primary
#BA97BD
secondary
#D3DED2
accent
#A1454C
background
#FCFBFC
surface
#F9F6F9
border
#D2D0D2
text
#131114
muted
#828082

Preview Lab

Preview with #BA97BD

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

Preview Lab → · Contrast checker → · Palette generator →

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