#BA89F7#BA89F7

#BA89F7 is a light, vivid violet. Relative luminance 0.350; OKLCH L 72.1% C 0.161 H 303.1°. Best body text is #000000 at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#BA89F7
RGBrgb(186, 137, 247)
HSLhsl(267, 87%, 75%)
HSVhsv(267, 45%, 97%)
CMYKcmyk(24.7%, 44.5%, 0%, 3.1%)
CIE-LABlab(65.78, 39.99, -48.29)
CIE-LCHlch(65.78, 62.70, 309.63°)
OKLaboklab(72.13% 0.0882 -0.135)
OKLCHoklch(72.13% 0.161 303.1)
XYZxyz(45.9802, 35.0459, 92.3198)
Luminance0.3505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA89F7 #C6F789
analogous
#898FF7 #BA89F7 #F189F7
triadic
#BA89F7 #F7BA89 #89F7BA
tetradic
#BA89F7 #F7898F #C6F789 #89F7F1
square
#BA89F7 #F7898F #C6F789 #89F7F1
split-complementary
#BA89F7 #F7F189 #8FF789
monochromatic
#7716EF #9850F3 #BA89F7 #DCC2FB #EEE2FD

Accessibility & contrast

On white

2.62
#BA89F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.01
#BA89F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA89F7
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA89F7#FFFFFF#000000##000000
##BA89F71.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9FFB
Deuteranopia (green-blind)
#77A0F4
Tritanopia (blue-blind)
#AF9CB4
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba89f7;
/* rgb */ color: rgb(186, 137, 247);
/* oklch */ color: oklch(72.1% 0.161 303.1);
Tailwind
colors: {
  custom: {
    50: '#d1acfa',
    500: '#ba89f7',
    950: '#000000',
  },
}
SCSS
$custom: #ba89f7;
$custom-light: #d1acfa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba89f7",
  "rgb": {
    "r": 186,
    "g": 137,
    "b": 247
  },
  "hsl": {
    "h": 266.727,
    "s": 87.302,
    "l": 75.294
  },
  "oklch": {
    "l": 0.72131,
    "c": 0.16127,
    "h": 303.1
  },
  "luminance": 0.35046
}

Semantic roles & 50–950 ramp

primary
#BA89F7
secondary
#E7F5D6
accent
#E4027F
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA89F7

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

Preview Lab → · Contrast checker → · Palette generator →

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