#BA7CCE#BA7CCE

#BA7CCE is a light, vivid purple. Relative luminance 0.293; OKLCH L 68.0% C 0.134 H 317.6°. Best body text is #000000 at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#BA7CCE
RGBrgb(186, 124, 206)
HSLhsl(285, 46%, 65%)
HSVhsv(285, 40%, 81%)
CMYKcmyk(9.7%, 39.8%, 0%, 19.2%)
CIE-LABlab(61.06, 38.12, -32.92)
CIE-LCHlch(61.06, 50.37, 319.19°)
OKLaboklab(67.97% 0.0993 -0.0906)
OKLCHoklch(67.97% 0.134 317.6)
XYZxyz(38.5964, 29.3117, 62.0051)
Luminance0.2931 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CCE #90CE7C
analogous
#917CCE #BA7CCE #CE7CB9
triadic
#BA7CCE #CEBA7C #7CCEBA
tetradic
#BA7CCE #CE917C #90CE7C #7CB9CE
square
#BA7CCE #CE917C #90CE7C #7CB9CE
split-complementary
#BA7CCE #B9CE7C #7CCE91
monochromatic
#803997 #A34FBD #BA7CCE #D1A9DF #E9D5EF

Accessibility & contrast

On white

3.06
#BA7CCE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.86
#BA7CCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7CCE
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7CCE#FFFFFF#000000##000000
##BA7CCE1.003.066.866.86
#FFFFFF3.061.0021.0021.00
#0000006.8621.001.001.00
##0000006.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F8FD1
Deuteranopia (green-blind)
#7F95CC
Tritanopia (blue-blind)
#BA869B
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba7cce;
/* rgb */ color: rgb(186, 124, 206);
/* oklch */ color: oklch(68.0% 0.134 317.6);
Tailwind
colors: {
  custom: {
    50: '#d0a3dd',
    500: '#ba7cce',
    950: '#000000',
  },
}
SCSS
$custom: #ba7cce;
$custom-light: #d0a3dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7cce",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 206
  },
  "hsl": {
    "h": 285.366,
    "s": 45.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.67969,
    "c": 0.13444,
    "h": 317.6
  },
  "luminance": 0.29311
}

Semantic roles & 50–950 ramp

primary
#BA7CCE
secondary
#CCE1C5
accent
#B92D4F
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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