#BA7DCA#BA7DCA

#BA7DCA is a light, vivid purple. Relative luminance 0.294; OKLCH L 68.0% C 0.128 H 319.1°. Best body text is #000000 at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#BA7DCA
RGBrgb(186, 125, 202)
HSLhsl(288, 42%, 64%)
HSVhsv(288, 38%, 79%)
CMYKcmyk(7.9%, 38.1%, 0%, 20.8%)
CIE-LABlab(61.11, 36.76, -30.59)
CIE-LCHlch(61.11, 47.82, 320.24°)
OKLaboklab(67.95% 0.097 -0.0839)
OKLCHoklch(67.95% 0.128 319.1)
XYZxyz(38.2426, 29.3717, 59.5205)
Luminance0.2937 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DCA #8DCA7D
analogous
#947DCA #BA7DCA #CA7DB4
triadic
#BA7DCA #CABA7D #7DCABA
tetradic
#BA7DCA #CA947D #8DCA7D #7DB4CA
square
#BA7DCA #CA947D #8DCA7D #7DB4CA
split-complementary
#BA7DCA #B4CA7D #7DCA94
monochromatic
#7F3B91 #A352B8 #BA7DCA #D1A8DC #E8D4ED

Accessibility & contrast

On white

3.05
#BA7DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.87
#BA7DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7DCA
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DCA#FFFFFF#000000##000000
##BA7DCA1.003.056.876.87
#FFFFFF3.051.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#728FCD
Deuteranopia (green-blind)
#8296C8
Tritanopia (blue-blind)
#BB869A
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba7dca;
/* rgb */ color: rgb(186, 125, 202);
/* oklch */ color: oklch(68.0% 0.128 319.1);
Tailwind
colors: {
  custom: {
    50: '#d0a4da',
    500: '#ba7dca',
    950: '#000000',
  },
}
SCSS
$custom: #ba7dca;
$custom-light: #d0a4da;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7dca",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 202
  },
  "hsl": {
    "h": 287.532,
    "s": 42.077,
    "l": 64.118
  },
  "oklch": {
    "l": 0.67953,
    "c": 0.12826,
    "h": 319.1
  },
  "luminance": 0.29371
}

Semantic roles & 50–950 ramp

primary
#BA7DCA
secondary
#CADFC4
accent
#B5304C
background
#FCFAFD
surface
#F9F4FA
border
#D2CED3
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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