#BA89EF#BA89EF

#BA89EF is a light, vivid violet. Relative luminance 0.346; OKLCH L 71.7% C 0.151 H 305.0°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#BA89EF
RGBrgb(186, 137, 239)
HSLhsl(269, 76%, 74%)
HSVhsv(269, 43%, 94%)
CMYKcmyk(22.2%, 42.7%, 0%, 6.3%)
CIE-LABlab(65.41, 38.15, -44.49)
CIE-LCHlch(65.41, 58.60, 310.61°)
OKLaboklab(71.72% 0.0869 -0.124)
OKLCHoklch(71.72% 0.151 305)
XYZxyz(44.7721, 34.5626, 85.9572)
Luminance0.3456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA89EF #BEEF89
analogous
#898BEF #BA89EF #ED89EF
triadic
#BA89EF #EFBA89 #89EFBA
tetradic
#BA89EF #EF898B #BEEF89 #89EFED
square
#BA89EF #EF898B #BEEF89 #89EFED
split-complementary
#BA89EF #EFED89 #8BEF89
monochromatic
#7B1EDF #9A53E8 #BA89EF #DABFF6 #EFE4FB

Accessibility & contrast

On white

2.65
#BA89EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.91
#BA89EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA89EF
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA89EF#FFFFFF#000000##000000
##BA89EF1.002.657.917.91
#FFFFFF2.651.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#709DF3
Deuteranopia (green-blind)
#7B9FEC
Tritanopia (blue-blind)
#B29AB1
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba89ef;
/* rgb */ color: rgb(186, 137, 239);
/* oklch */ color: oklch(71.7% 0.151 305.0);
Tailwind
colors: {
  custom: {
    50: '#d0acf4',
    500: '#ba89ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba89ef;
$custom-light: #d0acf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba89ef",
  "rgb": {
    "r": 186,
    "g": 137,
    "b": 239
  },
  "hsl": {
    "h": 268.824,
    "s": 76.119,
    "l": 73.725
  },
  "oklch": {
    "l": 0.71724,
    "c": 0.15144,
    "h": 305
  },
  "luminance": 0.34562
}

Semantic roles & 50–950 ramp

primary
#BA89EF
secondary
#E6F3D8
accent
#D80D77
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#141017
muted
#837F85

Preview Lab

Preview with #BA89EF

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

Preview Lab → · Contrast checker → · Palette generator →

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