#BA7EC6#BA7EC6

#BA7EC6 is a light, vivid purple. Relative luminance 0.294; OKLCH L 67.9% C 0.122 H 320.7°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#BA7EC6
RGBrgb(186, 126, 198)
HSLhsl(290, 39%, 64%)
HSVhsv(290, 36%, 78%)
CMYKcmyk(6.1%, 36.4%, 0%, 22.4%)
CIE-LABlab(61.17, 35.41, -28.24)
CIE-LCHlch(61.17, 45.29, 321.43°)
OKLaboklab(67.94% 0.0946 -0.0773)
OKLCHoklch(67.94% 0.122 320.7)
XYZxyz(37.9023, 29.4392, 57.1009)
Luminance0.2944 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EC6 #8AC67E
analogous
#967EC6 #BA7EC6 #C67EAE
triadic
#BA7EC6 #C6BA7E #7EC6BA
tetradic
#BA7EC6 #C6967E #8AC67E #7EAEC6
square
#BA7EC6 #C6967E #8AC67E #7EAEC6
split-complementary
#BA7EC6 #AEC67E #7EC696
monochromatic
#7F3E8C #A354B3 #BA7EC6 #D1A8D9 #E7D3EC

Accessibility & contrast

On white

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

On black

6.89
#BA7EC6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7EC6
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EC6#FFFFFF#000000##000000
##BA7EC61.003.056.896.89
#FFFFFF3.051.0021.0021.00
#0000006.8921.001.001.00
##0000006.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#758FC9
Deuteranopia (green-blind)
#8496C4
Tritanopia (blue-blind)
#BB8699
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba7ec6;
/* rgb */ color: rgb(186, 126, 198);
/* oklch */ color: oklch(67.9% 0.122 320.7);
Tailwind
colors: {
  custom: {
    50: '#d0a4d7',
    500: '#ba7ec6',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ec6;
$custom-light: #d0a4d7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ec6",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 198
  },
  "hsl": {
    "h": 290,
    "s": 38.71,
    "l": 63.529
  },
  "oklch": {
    "l": 0.67944,
    "c": 0.12211,
    "h": 320.7
  },
  "luminance": 0.29438
}

Semantic roles & 50–950 ramp

primary
#BA7EC6
secondary
#C7DDC3
accent
#B23449
background
#FCFAFD
surface
#F9F4FA
border
#D2CED3
text
#140F14
muted
#827F83

Preview Lab

Preview with #BA7EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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