#BA7BCE#BA7BCE

#BA7BCE is a light, vivid purple. Relative luminance 0.291; OKLCH L 67.8% C 0.136 H 317.7°. Best body text is #000000 at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#BA7BCE
RGBrgb(186, 123, 206)
HSLhsl(286, 46%, 65%)
HSVhsv(286, 40%, 81%)
CMYKcmyk(9.7%, 40.3%, 0%, 19.2%)
CIE-LABlab(60.84, 38.67, -33.26)
CIE-LCHlch(60.84, 51.01, 319.30°)
OKLaboklab(67.8% 0.1008 -0.0916)
OKLCHoklch(67.8% 0.136 317.7)
XYZxyz(38.4717, 29.0623, 61.9636)
Luminance0.2906 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BCE #8FCE7B
analogous
#917BCE #BA7BCE #CE7BB9
triadic
#BA7BCE #CEBA7B #7BCEBA
tetradic
#BA7BCE #CE917B #8FCE7B #7BB9CE
square
#BA7BCE #CE917B #8FCE7B #7BB9CE
split-complementary
#BA7BCE #B9CE7B #7BCE91
monochromatic
#803897 #A34EBD #BA7BCE #D1A8DF #E9D4EF

Accessibility & contrast

On white

3.08
#BA7BCE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.81
#BA7BCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7BCE
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BCE#FFFFFF#000000##000000
##BA7BCE1.003.086.816.81
#FFFFFF3.081.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba7bce;
/* rgb */ color: rgb(186, 123, 206);
/* oklch */ color: oklch(67.8% 0.136 317.7);
Tailwind
colors: {
  custom: {
    50: '#d0a2dd',
    500: '#ba7bce',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bce;
$custom-light: #d0a2dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bce",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 206
  },
  "hsl": {
    "h": 285.542,
    "s": 45.856,
    "l": 64.51
  },
  "oklch": {
    "l": 0.67804,
    "c": 0.13617,
    "h": 317.7
  },
  "luminance": 0.29061
}

Semantic roles & 50–950 ramp

primary
#BA7BCE
secondary
#CBE1C4
accent
#B92C4E
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7BCE

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

Preview Lab → · Contrast checker → · Palette generator →

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