#BA8BFC#BA8BFC

#BA8BFC is a light, vivid violet. Relative luminance 0.359; OKLCH L 72.7% C 0.164 H 301.6°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#BA8BFC
RGBrgb(186, 139, 252)
HSLhsl(265, 95%, 77%)
HSVhsv(265, 45%, 99%)
CMYKcmyk(26.2%, 44.8%, 0%, 1.2%)
CIE-LABlab(66.47, 40.06, -49.95)
CIE-LCHlch(66.47, 64.03, 308.73°)
OKLaboklab(72.72% 0.0862 -0.1399)
OKLCHoklch(72.72% 0.164 301.6)
XYZxyz(47.0491, 35.9325, 96.5336)
Luminance0.3593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8BFC #CDFC8B
analogous
#8B95FC #BA8BFC #F38BFC
triadic
#BA8BFC #FCBA8B #8BFCBA
tetradic
#BA8BFC #FC8B95 #CDFC8B #8BFCF3
square
#BA8BFC #FC8B95 #CDFC8B #8BFCF3
split-complementary
#BA8BFC #FCF38B #95FC8B
monochromatic
#7314F9 #974FFA #BA8BFC #DDC7FE #EDE1FE

Accessibility & contrast

On white

2.57
#BA8BFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#BA8BFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8BFC
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8BFC#FFFFFF#000000##000000
##BA8BFC1.002.578.198.19
#FFFFFF2.571.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6BA1FF
Deuteranopia (green-blind)
#76A1F9
Tritanopia (blue-blind)
#AE9FB8
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ba8bfc;
/* rgb */ color: rgb(186, 139, 252);
/* oklch */ color: oklch(72.7% 0.164 301.6);
Tailwind
colors: {
  custom: {
    50: '#d1adfe',
    500: '#ba8bfc',
    950: '#000000',
  },
}
SCSS
$custom: #ba8bfc;
$custom-light: #d1adfe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8bfc",
  "rgb": {
    "r": 186,
    "g": 139,
    "b": 252
  },
  "hsl": {
    "h": 264.956,
    "s": 94.958,
    "l": 76.667
  },
  "oklch": {
    "l": 0.72723,
    "c": 0.16429,
    "h": 301.6
  },
  "luminance": 0.35933
}

Semantic roles & 50–950 ramp

primary
#BA8BFC
secondary
#E8F6D5
accent
#E60086
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BA8BFC

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

Preview Lab → · Contrast checker → · Palette generator →

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