#BA8FF7#BA8FF7

#BA8FF7 is a light, vivid violet. Relative luminance 0.368; OKLCH L 73.1% C 0.152 H 301.8°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#BA8FF7
RGBrgb(186, 143, 247)
HSLhsl(265, 87%, 76%)
HSVhsv(265, 42%, 97%)
CMYKcmyk(24.7%, 42.1%, 0%, 3.1%)
CIE-LABlab(67.13, 36.68, -46.17)
CIE-LCHlch(67.13, 58.97, 308.47°)
OKLaboklab(73.14% 0.0801 -0.1289)
OKLCHoklch(73.14% 0.152 301.8)
XYZxyz(46.8570, 36.7994, 92.6121)
Luminance0.3680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8FF7 #CCF78F
analogous
#8F98F7 #BA8FF7 #EE8FF7
triadic
#BA8FF7 #F7BA8F #8FF7BA
tetradic
#BA8FF7 #F78F98 #CCF78F #8FF7EE
square
#BA8FF7 #F78F98 #CCF78F #8FF7EE
split-complementary
#BA8FF7 #F7EE8F #98F78F
monochromatic
#741DEF #9756F3 #BA8FF7 #DDC8FB #EDE2FD

Accessibility & contrast

On white

2.51
#BA8FF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.36
#BA8FF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8FF7
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8FF7#FFFFFF#000000##000000
##BA8FF71.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A3FB
Deuteranopia (green-blind)
#7DA3F4
Tritanopia (blue-blind)
#AFA1B7
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ba8ff7;
/* rgb */ color: rgb(186, 143, 247);
/* oklch */ color: oklch(73.1% 0.152 301.8);
Tailwind
colors: {
  custom: {
    50: '#d1b0fa',
    500: '#ba8ff7',
    950: '#000000',
  },
}
SCSS
$custom: #ba8ff7;
$custom-light: #d1b0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8ff7",
  "rgb": {
    "r": 186,
    "g": 143,
    "b": 247
  },
  "hsl": {
    "h": 264.808,
    "s": 86.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.7314,
    "c": 0.15175,
    "h": 301.8
  },
  "luminance": 0.36799
}

Semantic roles & 50–950 ramp

primary
#BA8FF7
secondary
#E8F5D6
accent
#E30286
background
#FDFAFF
surface
#FAF5FF
border
#D3CFD7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA8FF7

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

Preview Lab → · Contrast checker → · Palette generator →

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