#BA89FE#BA89FE

#BA89FE is a light, vivid violet. Relative luminance 0.355; OKLCH L 72.5% C 0.170 H 301.6°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#BA89FE
RGBrgb(186, 137, 254)
HSLhsl(265, 98%, 77%)
HSVhsv(265, 46%, 100%)
CMYKcmyk(26.8%, 46.1%, 0%, 0.4%)
CIE-LABlab(66.13, 41.63, -51.58)
CIE-LCHlch(66.13, 66.28, 308.90°)
OKLaboklab(72.5% 0.0891 -0.1446)
OKLCHoklch(72.5% 0.17 301.6)
XYZxyz(47.0807, 35.4861, 98.1159)
Luminance0.3549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA89FE #CDFE89
analogous
#8993FE #BA89FE #F489FE
triadic
#BA89FE #FEBA89 #89FEBA
tetradic
#BA89FE #FE8993 #CDFE89 #89FEF4
square
#BA89FE #FE8993 #CDFE89 #89FEF4
split-complementary
#BA89FE #FEF489 #93FE89
monochromatic
#7310FD #974CFD #BA89FE #DDC6FF #EDE1FF

Accessibility & contrast

On white

2.59
#BA89FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.10
#BA89FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA89FE
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA89FE#FFFFFF#000000##000000
##BA89FE1.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#67A0FF
Deuteranopia (green-blind)
#72A0FB
Tritanopia (blue-blind)
#AD9EB8
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba89fe;
/* rgb */ color: rgb(186, 137, 254);
/* oklch */ color: oklch(72.5% 0.170 301.6);
Tailwind
colors: {
  custom: {
    50: '#d1acff',
    500: '#ba89fe',
    950: '#000000',
  },
}
SCSS
$custom: #ba89fe;
$custom-light: #d1acff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba89fe",
  "rgb": {
    "r": 186,
    "g": 137,
    "b": 254
  },
  "hsl": {
    "h": 265.128,
    "s": 98.319,
    "l": 76.667
  },
  "oklch": {
    "l": 0.72498,
    "c": 0.16987,
    "h": 301.6
  },
  "luminance": 0.35486
}

Semantic roles & 50–950 ramp

primary
#BA89FE
secondary
#E8F7D4
accent
#E60085
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BA89FE

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

Preview Lab → · Contrast checker → · Palette generator →

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