#BA89EC#BA89EC

#BA89EC is a light, vivid violet. Relative luminance 0.344; OKLCH L 71.6% C 0.148 H 305.8°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#BA89EC
RGBrgb(186, 137, 236)
HSLhsl(270, 72%, 73%)
HSVhsv(270, 42%, 93%)
CMYKcmyk(21.2%, 41.9%, 0%, 7.5%)
CIE-LABlab(65.27, 37.47, -43.05)
CIE-LCHlch(65.27, 57.07, 311.03°)
OKLaboklab(71.58% 0.0864 -0.1198)
OKLCHoklch(71.58% 0.148 305.8)
XYZxyz(44.3326, 34.3868, 83.6424)
Luminance0.3439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA89EC #BBEC89
analogous
#8989EC #BA89EC #EC89EC
triadic
#BA89EC #ECBA89 #89ECBA
tetradic
#BA89EC #EC8989 #BBEC89 #89ECEC
square
#BA89EC #EC8989 #BBEC89 #89ECEC
split-complementary
#BA89EC #ECEC89 #89EC89
monochromatic
#7C23D8 #9B54E4 #BA89EC #D9BEF4 #F0E5FB

Accessibility & contrast

On white

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

On black

7.88
#BA89EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA89EC
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA89EC#FFFFFF#000000##000000
##BA89EC1.002.677.887.88
#FFFFFF2.671.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#719DF0
Deuteranopia (green-blind)
#7D9FE9
Tritanopia (blue-blind)
#B299AF
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba89ec;
/* rgb */ color: rgb(186, 137, 236);
/* oklch */ color: oklch(71.6% 0.148 305.8);
Tailwind
colors: {
  custom: {
    50: '#d0acf2',
    500: '#ba89ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba89ec;
$custom-light: #d0acf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba89ec",
  "rgb": {
    "r": 186,
    "g": 137,
    "b": 236
  },
  "hsl": {
    "h": 269.697,
    "s": 72.263,
    "l": 73.137
  },
  "oklch": {
    "l": 0.71575,
    "c": 0.14776,
    "h": 305.8
  },
  "luminance": 0.34387
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA89EC

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

Preview Lab → · Contrast checker → · Palette generator →

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