#BA8AF6#BA8AF6

#BA8AF6 is a light, vivid violet. Relative luminance 0.353; OKLCH L 72.2% C 0.158 H 303.2°. Best body text is #000000 at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#BA8AF6
RGBrgb(186, 138, 246)
HSLhsl(267, 86%, 75%)
HSVhsv(267, 44%, 96%)
CMYKcmyk(24.4%, 43.9%, 0%, 3.5%)
CIE-LABlab(65.96, 39.21, -47.47)
CIE-LCHlch(65.96, 61.56, 309.56°)
OKLaboklab(72.25% 0.0867 -0.1326)
OKLCHoklch(72.25% 0.158 303.2)
XYZxyz(45.9691, 35.2699, 91.5569)
Luminance0.3527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8AF6 #C6F68A
analogous
#8A90F6 #BA8AF6 #F08AF6
triadic
#BA8AF6 #F6BA8A #8AF6BA
tetradic
#BA8AF6 #F68A90 #C6F68A #8AF6F0
square
#BA8AF6 #F68A90 #C6F68A #8AF6F0
split-complementary
#BA8AF6 #F6F08A #90F68A
monochromatic
#7718ED #9851F2 #BA8AF6 #DCC3FA #EEE3FD

Accessibility & contrast

On white

2.61
#BA8AF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.05
#BA8AF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8AF6
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8AF6#FFFFFF#000000##000000
##BA8AF61.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9FFA
Deuteranopia (green-blind)
#78A0F3
Tritanopia (blue-blind)
#B09CB4
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba8af6;
/* rgb */ color: rgb(186, 138, 246);
/* oklch */ color: oklch(72.2% 0.158 303.2);
Tailwind
colors: {
  custom: {
    50: '#d1adf9',
    500: '#ba8af6',
    950: '#000000',
  },
}
SCSS
$custom: #ba8af6;
$custom-light: #d1adf9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8af6",
  "rgb": {
    "r": 186,
    "g": 138,
    "b": 246
  },
  "hsl": {
    "h": 266.667,
    "s": 85.714,
    "l": 75.294
  },
  "oklch": {
    "l": 0.72246,
    "c": 0.15845,
    "h": 303.2
  },
  "luminance": 0.3527
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA8AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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