#BA7CD6#BA7CD6

#BA7CD6 is a light, vivid purple. Relative luminance 0.297; OKLCH L 68.3% C 0.143 H 314.7°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#BA7CD6
RGBrgb(186, 124, 214)
HSLhsl(281, 52%, 66%)
HSVhsv(281, 42%, 84%)
CMYKcmyk(13.1%, 42.1%, 0%, 16.1%)
CIE-LABlab(61.40, 39.78, -36.87)
CIE-LCHlch(61.40, 54.24, 317.17°)
OKLaboklab(68.34% 0.1009 -0.1019)
OKLCHoklch(68.34% 0.143 314.7)
XYZxyz(39.5930, 29.7104, 67.2543)
Luminance0.2971 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CD6 #98D67C
analogous
#8D7CD6 #BA7CD6 #D67CC5
triadic
#BA7CD6 #D6BA7C #7CD6BA
tetradic
#BA7CD6 #D68D7C #98D67C #7CC5D6
square
#BA7CD6 #D68D7C #98D67C #7CC5D6
split-complementary
#BA7CD6 #C5D67C #7CD68D
monochromatic
#8133A4 #A14DC7 #BA7CD6 #D3ABE5 #EBD9F3

Accessibility & contrast

On white

3.03
#BA7CD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.94
#BA7CD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7CD6
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7CD6#FFFFFF#000000##000000
##BA7CD61.003.036.946.94
#FFFFFF3.031.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C91D9
Deuteranopia (green-blind)
#7C96D3
Tritanopia (blue-blind)
#B8899F
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba7cd6;
/* rgb */ color: rgb(186, 124, 214);
/* oklch */ color: oklch(68.3% 0.143 314.7);
Tailwind
colors: {
  custom: {
    50: '#d0a3e3',
    500: '#ba7cd6',
    950: '#000000',
  },
}
SCSS
$custom: #ba7cd6;
$custom-light: #d0a3e3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7cd6",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 214
  },
  "hsl": {
    "h": 281.333,
    "s": 52.326,
    "l": 66.275
  },
  "oklch": {
    "l": 0.68344,
    "c": 0.14343,
    "h": 314.7
  },
  "luminance": 0.29709
}

Semantic roles & 50–950 ramp

primary
#BA7CD6
secondary
#D1E6C8
accent
#C02656
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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