#BA7DCE#BA7DCE

#BA7DCE is a light, vivid purple. Relative luminance 0.296; OKLCH L 68.1% C 0.133 H 317.5°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#BA7DCE
RGBrgb(186, 125, 206)
HSLhsl(285, 45%, 65%)
HSVhsv(285, 39%, 81%)
CMYKcmyk(9.7%, 39.3%, 0%, 19.2%)
CIE-LABlab(61.28, 37.58, -32.58)
CIE-LCHlch(61.28, 49.73, 319.07°)
OKLaboklab(68.14% 0.0979 -0.0896)
OKLCHoklch(68.14% 0.133 317.5)
XYZxyz(38.7223, 29.5636, 62.0471)
Luminance0.2956 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DCE #91CE7D
analogous
#927DCE #BA7DCE #CE7DBA
triadic
#BA7DCE #CEBA7D #7DCEBA
tetradic
#BA7DCE #CE927D #91CE7D #7DBACE
square
#BA7DCE #CE927D #91CE7D #7DBACE
split-complementary
#BA7DCE #BACE7D #7DCE92
monochromatic
#803997 #A251BD #BA7DCE #D2A9DF #E9D6F0

Accessibility & contrast

On white

3.04
#BA7DCE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#BA7DCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7DCE
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DCE#FFFFFF#000000##000000
##BA7DCE1.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7190D1
Deuteranopia (green-blind)
#8096CC
Tritanopia (blue-blind)
#BA879C
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba7dce;
/* rgb */ color: rgb(186, 125, 206);
/* oklch */ color: oklch(68.1% 0.133 317.5);
Tailwind
colors: {
  custom: {
    50: '#d0a4dd',
    500: '#ba7dce',
    950: '#000000',
  },
}
SCSS
$custom: #ba7dce;
$custom-light: #d0a4dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7dce",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 206
  },
  "hsl": {
    "h": 285.185,
    "s": 45.251,
    "l": 64.902
  },
  "oklch": {
    "l": 0.68135,
    "c": 0.1327,
    "h": 317.5
  },
  "luminance": 0.29563
}

Semantic roles & 50–950 ramp

primary
#BA7DCE
secondary
#CCE1C6
accent
#B82D4F
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7DCE

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

Preview Lab → · Contrast checker → · Palette generator →

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