#BA8FF2#BA8FF2

#BA8FF2 is a light, vivid violet. Relative luminance 0.365; OKLCH L 72.9% C 0.145 H 303.0°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#BA8FF2
RGBrgb(186, 143, 242)
HSLhsl(266, 79%, 75%)
HSVhsv(266, 41%, 95%)
CMYKcmyk(23.1%, 40.9%, 0%, 5.1%)
CIE-LABlab(66.90, 35.52, -43.80)
CIE-LCHlch(66.90, 56.39, 309.05°)
OKLaboklab(72.89% 0.0792 -0.122)
OKLCHoklch(72.89% 0.145 303)
XYZxyz(46.0957, 36.4949, 88.6030)
Luminance0.3649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8FF2 #C7F28F
analogous
#8F95F2 #BA8FF2 #EC8FF2
triadic
#BA8FF2 #F2BA8F #8FF2BA
tetradic
#BA8FF2 #F28F95 #C7F28F #8FF2EC
square
#BA8FF2 #F28F95 #C7F28F #8FF2EC
split-complementary
#BA8FF2 #F2EC8F #95F28F
monochromatic
#7621E5 #9858EC #BA8FF2 #DCC6F8 #EEE4FC

Accessibility & contrast

On white

2.53
#BA8FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#BA8FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8FF2
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8FF2#FFFFFF#000000##000000
##BA8FF21.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A2F6
Deuteranopia (green-blind)
#80A3EF
Tritanopia (blue-blind)
#B09FB5
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ba8ff2;
/* rgb */ color: rgb(186, 143, 242);
/* oklch */ color: oklch(72.9% 0.145 303.0);
Tailwind
colors: {
  custom: {
    50: '#d0b0f7',
    500: '#ba8ff2',
    950: '#000000',
  },
}
SCSS
$custom: #ba8ff2;
$custom-light: #d0b0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8ff2",
  "rgb": {
    "r": 186,
    "g": 143,
    "b": 242
  },
  "hsl": {
    "h": 266.061,
    "s": 79.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.72892,
    "c": 0.14547,
    "h": 303
  },
  "luminance": 0.36495
}

Semantic roles & 50–950 ramp

primary
#BA8FF2
secondary
#E7F4D7
accent
#DB0A81
background
#FCFAFF
surface
#F9F5FE
border
#D2CFD6
text
#141017
muted
#827F85

Preview Lab

Preview with #BA8FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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