#BA8DCA#BA8DCA

#BA8DCA is a light, moderate purple. Relative luminance 0.338; OKLCH L 70.7% C 0.100 H 317.0°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#BA8DCA
RGBrgb(186, 141, 202)
HSLhsl(284, 37%, 67%)
HSVhsv(284, 30%, 79%)
CMYKcmyk(7.9%, 30.2%, 0%, 20.8%)
CIE-LABlab(64.77, 27.91, -24.94)
CIE-LCHlch(64.77, 37.43, 318.21°)
OKLaboklab(70.73% 0.073 -0.068)
OKLCHoklch(70.73% 0.1 317)
XYZxyz(40.4337, 33.7540, 60.2508)
Luminance0.3375 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8DCA #9DCA8D
analogous
#9B8DCA #BA8DCA #CA8DBC
triadic
#BA8DCA #CABA8D #8DCABA
tetradic
#BA8DCA #CA9B8D #9DCA8D #8DBCCA
square
#BA8DCA #CA9B8D #9DCA8D #8DBCCA
split-complementary
#BA8DCA #BCCA8D #8DCA9B
monochromatic
#814697 #A163B7 #BA8DCA #D3B7DD #EDE1F1

Accessibility & contrast

On white

2.71
#BA8DCA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#BA8DCA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8DCA
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8DCA#FFFFFF#000000##000000
##BA8DCA1.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#859ACC
Deuteranopia (green-blind)
#8F9FC8
Tritanopia (blue-blind)
#BA94A3
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba8dca;
/* rgb */ color: rgb(186, 141, 202);
/* oklch */ color: oklch(70.7% 0.100 317.0);
Tailwind
colors: {
  custom: {
    50: '#cfafda',
    500: '#ba8dca',
    950: '#000000',
  },
}
SCSS
$custom: #ba8dca;
$custom-light: #cfafda;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8dca",
  "rgb": {
    "r": 186,
    "g": 141,
    "b": 202
  },
  "hsl": {
    "h": 284.262,
    "s": 36.527,
    "l": 67.255
  },
  "oklch": {
    "l": 0.70728,
    "c": 0.09982,
    "h": 317
  },
  "luminance": 0.33753
}

Semantic roles & 50–950 ramp

primary
#BA8DCA
secondary
#D5E3D0
accent
#AF3656
background
#FCFAFD
surface
#F9F4FA
border
#D2CED3
text
#141014
muted
#827F83

Preview Lab

Preview with #BA8DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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