#BA7DCB#BA7DCB

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

Color values

HEX#BA7DCB
RGBrgb(186, 125, 203)
HSLhsl(287, 43%, 64%)
HSVhsv(287, 38%, 80%)
CMYKcmyk(8.4%, 38.4%, 0%, 20.4%)
CIE-LABlab(61.15, 36.96, -31.08)
CIE-LCHlch(61.15, 48.30, 319.94°)
OKLaboklab(68% 0.0972 -0.0854)
OKLCHoklch(68% 0.129 318.7)
XYZxyz(38.3614, 29.4192, 60.1460)
Luminance0.2942 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DCB #8ECB7D
analogous
#937DCB #BA7DCB #CB7DB5
triadic
#BA7DCB #CBBA7D #7DCBBA
tetradic
#BA7DCB #CB937D #8ECB7D #7DB5CB
square
#BA7DCB #CB937D #8ECB7D #7DB5CB
split-complementary
#BA7DCB #B5CB7D #7DCB93
monochromatic
#803B93 #A351BA #BA7DCB #D1A9DC #E8D4EE

Accessibility & contrast

On white

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

On black

6.88
#BA7DCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7DCB
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DCB#FFFFFF#000000##000000
##BA7DCB1.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#728FCE
Deuteranopia (green-blind)
#8196C9
Tritanopia (blue-blind)
#BB879B
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba7dcb;
/* rgb */ color: rgb(186, 125, 203);
/* oklch */ color: oklch(68.0% 0.129 318.7);
Tailwind
colors: {
  custom: {
    50: '#d0a4db',
    500: '#ba7dcb',
    950: '#000000',
  },
}
SCSS
$custom: #ba7dcb;
$custom-light: #d0a4db;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7dcb",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 203
  },
  "hsl": {
    "h": 286.923,
    "s": 42.857,
    "l": 64.314
  },
  "oklch": {
    "l": 0.67998,
    "c": 0.12937,
    "h": 318.7
  },
  "luminance": 0.29418
}

Semantic roles & 50–950 ramp

primary
#BA7DCB
secondary
#CADFC4
accent
#B6304D
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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