#BA81BB#BA81BB

#BA81BB is a light, moderate purple. Relative luminance 0.297; OKLCH L 68.0% C 0.105 H 326.1°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#BA81BB
RGBrgb(186, 129, 187)
HSLhsl(299, 30%, 62%)
HSVhsv(299, 31%, 73%)
CMYKcmyk(0.5%, 31%, 0%, 26.7%)
CIE-LABlab(61.42, 31.60, -21.63)
CIE-LCHlch(61.42, 38.29, 325.62°)
OKLaboklab(68% 0.0872 -0.0586)
OKLCHoklch(68% 0.105 326.1)
XYZxyz(37.0687, 29.7288, 50.7897)
Luminance0.2973 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA81BB #82BB81
analogous
#9D81BB #BA81BB #BB819F
triadic
#BA81BB #BBBA81 #81BBBA
tetradic
#BA81BB #BB9D81 #82BB81 #819FBB
square
#BA81BB #BB9D81 #82BB81 #819FBB
split-complementary
#BA81BB #9FBB81 #81BB9D
monochromatic
#7D447E #A459A5 #BA81BB #D0A9D0 #E6D0E6

Accessibility & contrast

On white

3.02
#BA81BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#BA81BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA81BB
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA81BB#FFFFFF#000000##000000
##BA81BB1.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D90BD
Deuteranopia (green-blind)
#8A97B9
Tritanopia (blue-blind)
#BD8696
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba81bb;
/* rgb */ color: rgb(186, 129, 187);
/* oklch */ color: oklch(68.0% 0.105 326.1);
Tailwind
colors: {
  custom: {
    50: '#cfa6cf',
    500: '#ba81bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba81bb;
$custom-light: #cfa6cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba81bb",
  "rgb": {
    "r": 186,
    "g": 129,
    "b": 187
  },
  "hsl": {
    "h": 298.966,
    "s": 29.897,
    "l": 61.961
  },
  "oklch": {
    "l": 0.67995,
    "c": 0.10504,
    "h": 326.1
  },
  "luminance": 0.29727
}

Semantic roles & 50–950 ramp

primary
#BA81BB
secondary
#C2D7C1
accent
#A93D3F
background
#FCFAFC
surface
#F9F4F9
border
#D2CED2
text
#140F14
muted
#827F82

Preview Lab

Preview with #BA81BB

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

Preview Lab → · Contrast checker → · Palette generator →

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