#BA8BF4#BA8BF4

#BA8BF4 is a light, vivid violet. Relative luminance 0.354; OKLCH L 72.3% C 0.154 H 303.4°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#BA8BF4
RGBrgb(186, 139, 244)
HSLhsl(267, 83%, 75%)
HSVhsv(267, 43%, 96%)
CMYKcmyk(23.8%, 43%, 0%, 4.3%)
CIE-LABlab(66.09, 38.19, -46.17)
CIE-LCHlch(66.09, 59.92, 309.60°)
OKLaboklab(72.31% 0.085 -0.1289)
OKLCHoklch(72.31% 0.154 303.4)
XYZxyz(45.8080, 35.4361, 89.9970)
Luminance0.3544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8BF4 #C5F48B
analogous
#8B91F4 #BA8BF4 #EE8BF4
triadic
#BA8BF4 #F4BA8B #8BF4BA
tetradic
#BA8BF4 #F48B91 #C5F48B #8BF4EE
square
#BA8BF4 #F48B91 #C5F48B #8BF4EE
split-complementary
#BA8BF4 #F4EE8B #91F48B
monochromatic
#771BE9 #9953EF #BA8BF4 #DBC3F9 #EEE3FC

Accessibility & contrast

On white

2.60
#BA8BF4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#BA8BF4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8BF4
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8BF4#FFFFFF#000000##000000
##BA8BF41.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#709FF8
Deuteranopia (green-blind)
#7AA1F1
Tritanopia (blue-blind)
#B09DB4
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba8bf4;
/* rgb */ color: rgb(186, 139, 244);
/* oklch */ color: oklch(72.3% 0.154 303.4);
Tailwind
colors: {
  custom: {
    50: '#d1adf8',
    500: '#ba8bf4',
    950: '#000000',
  },
}
SCSS
$custom: #ba8bf4;
$custom-light: #d1adf8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8bf4",
  "rgb": {
    "r": 186,
    "g": 139,
    "b": 244
  },
  "hsl": {
    "h": 266.857,
    "s": 82.677,
    "l": 75.098
  },
  "oklch": {
    "l": 0.72312,
    "c": 0.15438,
    "h": 303.4
  },
  "luminance": 0.35436
}

Semantic roles & 50–950 ramp

primary
#BA8BF4
secondary
#E7F4D7
accent
#DF067E
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA8BF4

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

Preview Lab → · Contrast checker → · Palette generator →

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