#BA6AFB#BA6AFB

#BA6AFB is a light, highly saturated violet. Relative luminance 0.277; OKLCH L 67.6% C 0.213 H 307.1°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#BA6AFB
RGBrgb(186, 106, 251)
HSLhsl(273, 95%, 70%)
HSVhsv(273, 58%, 98%)
CMYKcmyk(25.9%, 57.8%, 0%, 1.6%)
CIE-LABlab(59.63, 57.29, -60.27)
CIE-LCHlch(59.63, 83.16, 313.55°)
OKLaboklab(67.64% 0.1283 -0.1699)
OKLCHoklch(67.64% 0.213 307.1)
XYZxyz(42.8127, 27.7127, 94.3418)
Luminance0.2771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6AFB #ABFB6A
analogous
#716AFB #BA6AFB #FB6AF4
triadic
#BA6AFB #FBBA6A #6AFBBA
tetradic
#BA6AFB #FB716A #ABFB6A #6AF4FB
square
#BA6AFB #FB716A #ABFB6A #6AF4FB
split-complementary
#BA6AFB #F4FB6A #6AFB71
monochromatic
#8106E4 #9E2EF9 #BA6AFB #D6A6FD #F1E1FE

Accessibility & contrast

On white

3.21
#BA6AFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#BA6AFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6AFB
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6AFB#FFFFFF#000000##000000
##BA6AFB1.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F8DFF
Deuteranopia (green-blind)
#5290F8
Tritanopia (blue-blind)
#B086A9
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba6afb;
/* rgb */ color: rgb(186, 106, 251);
/* oklch */ color: oklch(67.6% 0.213 307.1);
Tailwind
colors: {
  custom: {
    50: '#d298fd',
    500: '#ba6afb',
    950: '#000000',
  },
}
SCSS
$custom: #ba6afb;
$custom-light: #d298fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6afb",
  "rgb": {
    "r": 186,
    "g": 106,
    "b": 251
  },
  "hsl": {
    "h": 273.103,
    "s": 94.771,
    "l": 70
  },
  "oklch": {
    "l": 0.67639,
    "c": 0.21296,
    "h": 307.1
  },
  "luminance": 0.27712
}

Semantic roles & 50–950 ramp

primary
#BA6AFB
secondary
#DEF5CC
accent
#E60067
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA6AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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