#BA89EB#BA89EB

#BA89EB is a light, vivid violet. Relative luminance 0.343; OKLCH L 71.5% C 0.147 H 306.1°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#BA89EB
RGBrgb(186, 137, 235)
HSLhsl(270, 71%, 73%)
HSVhsv(270, 42%, 92%)
CMYKcmyk(20.9%, 41.7%, 0%, 7.8%)
CIE-LABlab(65.22, 37.24, -42.57)
CIE-LCHlch(65.22, 56.56, 311.18°)
OKLaboklab(71.53% 0.0863 -0.1184)
OKLCHoklch(71.53% 0.147 306.1)
XYZxyz(44.1877, 34.3289, 82.8794)
Luminance0.3433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA89EB #BAEB89
analogous
#8989EB #BA89EB #EB89EB
triadic
#BA89EB #EBBA89 #89EBBA
tetradic
#BA89EB #EB8989 #BAEB89 #89EBEB
square
#BA89EB #EB8989 #BAEB89 #89EBEB
split-complementary
#BA89EB #EBEB89 #89EB89
monochromatic
#7D24D5 #9B55E2 #BA89EB #D9BDF4 #F0E5FB

Accessibility & contrast

On white

2.67
#BA89EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#BA89EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA89EB
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA89EB#FFFFFF#000000##000000
##BA89EB1.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#729DEF
Deuteranopia (green-blind)
#7D9FE8
Tritanopia (blue-blind)
#B399AF
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba89eb;
/* rgb */ color: rgb(186, 137, 235);
/* oklch */ color: oklch(71.5% 0.147 306.1);
Tailwind
colors: {
  custom: {
    50: '#d0acf2',
    500: '#ba89eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba89eb;
$custom-light: #d0acf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba89eb",
  "rgb": {
    "r": 186,
    "g": 137,
    "b": 235
  },
  "hsl": {
    "h": 270,
    "s": 71.014,
    "l": 72.941
  },
  "oklch": {
    "l": 0.71525,
    "c": 0.14653,
    "h": 306.1
  },
  "luminance": 0.34329
}

Semantic roles & 50–950 ramp

primary
#BA89EB
secondary
#E6F2D9
accent
#D31273
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #BA89EB

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

Preview Lab → · Contrast checker → · Palette generator →

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