#BA7BEA#BA7BEA

#BA7BEA is a light, vivid violet. Relative luminance 0.305; OKLCH L 69.2% C 0.168 H 308.8°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#BA7BEA
RGBrgb(186, 123, 234)
HSLhsl(274, 73%, 70%)
HSVhsv(274, 47%, 92%)
CMYKcmyk(20.5%, 47.4%, 0%, 8.2%)
CIE-LABlab(62.12, 44.65, -46.90)
CIE-LCHlch(62.12, 64.75, 313.59°)
OKLaboklab(69.19% 0.1054 -0.1309)
OKLCHoklch(69.19% 0.168 308.8)
XYZxyz(42.1811, 30.5461, 81.4998)
Luminance0.3055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BEA #ABEA7B
analogous
#827BEA #BA7BEA #EA7BE3
triadic
#BA7BEA #EABA7B #7BEABA
tetradic
#BA7BEA #EA827B #ABEA7B #7BE3EA
square
#BA7BEA #EA827B #ABEA7B #7BE3EA
split-complementary
#BA7BEA #E3EA7B #7BEA82
monochromatic
#8120CA #9E46E2 #BA7BEA #D6B0F2 #F1E5FB

Accessibility & contrast

On white

2.95
#BA7BEA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#BA7BEA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7BEA
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BEA#FFFFFF#000000##000000
##BA7BEA1.002.957.117.11
#FFFFFF2.951.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F93EE
Deuteranopia (green-blind)
#7097E7
Tritanopia (blue-blind)
#B48DA8
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba7bea;
/* rgb */ color: rgb(186, 123, 234);
/* oklch */ color: oklch(69.2% 0.168 308.8);
Tailwind
colors: {
  custom: {
    50: '#d1a3f1',
    500: '#ba7bea',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bea;
$custom-light: #d1a3f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bea",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 234
  },
  "hsl": {
    "h": 274.054,
    "s": 72.549,
    "l": 70
  },
  "oklch": {
    "l": 0.69187,
    "c": 0.16808,
    "h": 308.8
  },
  "luminance": 0.30546
}

Semantic roles & 50–950 ramp

primary
#BA7BEA
secondary
#DEF0D1
accent
#D51166
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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