#BA89DD#BA89DD

#BA89DD is a light, vivid violet. Relative luminance 0.336; OKLCH L 70.9% C 0.129 H 310.2°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#BA89DD
RGBrgb(186, 137, 221)
HSLhsl(275, 55%, 70%)
HSVhsv(275, 38%, 87%)
CMYKcmyk(15.8%, 38%, 0%, 13.3%)
CIE-LABlab(64.61, 34.14, -35.79)
CIE-LCHlch(64.61, 49.46, 313.65°)
OKLaboklab(70.86% 0.0836 -0.0989)
OKLCHoklch(70.86% 0.129 310.2)
XYZxyz(42.2442, 33.5515, 72.6432)
Luminance0.3355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA89DD #ACDD89
analogous
#9089DD #BA89DD #DD89D6
triadic
#BA89DD #DDBA89 #89DDBA
tetradic
#BA89DD #DD9089 #ACDD89 #89D6DD
square
#BA89DD #DD9089 #ACDD89 #89D6DD
split-complementary
#BA89DD #D6DD89 #89DD90
monochromatic
#8135B7 #9E59CF #BA89DD #D6B9EB #F1E7F8

Accessibility & contrast

On white

2.72
#BA89DD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#BA89DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA89DD
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA89DD#FFFFFF#000000##000000
##BA89DD1.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#799AE0
Deuteranopia (green-blind)
#849EDB
Tritanopia (blue-blind)
#B695A9
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba89dd;
/* rgb */ color: rgb(186, 137, 221);
/* oklch */ color: oklch(70.9% 0.129 310.2);
Tailwind
colors: {
  custom: {
    50: '#d0ace8',
    500: '#ba89dd',
    950: '#000000',
  },
}
SCSS
$custom: #ba89dd;
$custom-light: #d0ace8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba89dd",
  "rgb": {
    "r": 186,
    "g": 137,
    "b": 221
  },
  "hsl": {
    "h": 275,
    "s": 55.263,
    "l": 70.196
  },
  "oklch": {
    "l": 0.70857,
    "c": 0.12947,
    "h": 310.2
  },
  "luminance": 0.33551
}

Semantic roles & 50–950 ramp

primary
#BA89DD
secondary
#DFEDD5
accent
#C32365
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#141016
muted
#827F84

Preview Lab

Preview with #BA89DD

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

Preview Lab → · Contrast checker → · Palette generator →

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