#BA7BFC#BA7BFC

#BA7BFC is a light, vivid violet. Relative luminance 0.316; OKLCH L 70.2% C 0.189 H 304.5°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#BA7BFC
RGBrgb(186, 123, 252)
HSLhsl(269, 96%, 74%)
HSVhsv(269, 51%, 99%)
CMYKcmyk(26.2%, 51.2%, 0%, 1.2%)
CIE-LABlab(63.04, 48.72, -55.38)
CIE-LCHlch(63.04, 73.76, 311.34°)
OKLaboklab(70.17% 0.1072 -0.1557)
OKLCHoklch(70.17% 0.189 304.5)
XYZxyz(44.8996, 31.6335, 95.8171)
Luminance0.3163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BFC #BDFC7B
analogous
#7B7CFC #BA7BFC #FA7BFC
triadic
#BA7BFC #FCBA7B #7BFCBA
tetradic
#BA7BFC #FC7B7C #BDFC7B #7BFCFA
square
#BA7BFC #FC7B7C #BDFC7B #7BFCFA
split-complementary
#BA7BFC #FCFA7B #7CFC7B
monochromatic
#7B06F7 #9B3FFB #BA7BFC #D9B7FD #EFE1FE

Accessibility & contrast

On white

2.87
#BA7BFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.33
#BA7BFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7BFC
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BFC#FFFFFF#000000##000000
##BA7BFC1.002.877.337.33
#FFFFFF2.871.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5297FF
Deuteranopia (green-blind)
#6599F9
Tritanopia (blue-blind)
#AF92B0
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba7bfc;
/* rgb */ color: rgb(186, 123, 252);
/* oklch */ color: oklch(70.2% 0.189 304.5);
Tailwind
colors: {
  custom: {
    50: '#d2a3fe',
    500: '#ba7bfc',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bfc;
$custom-light: #d2a3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bfc",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 252
  },
  "hsl": {
    "h": 269.302,
    "s": 95.556,
    "l": 73.529
  },
  "oklch": {
    "l": 0.70166,
    "c": 0.18899,
    "h": 304.5
  },
  "luminance": 0.31633
}

Semantic roles & 50–950 ramp

primary
#BA7BFC
secondary
#E6F7D4
accent
#E60075
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA7BFC

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

Preview Lab → · Contrast checker → · Palette generator →

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