#BA6AF9#BA6AF9

#BA6AF9 is a light, highly saturated violet. Relative luminance 0.276; OKLCH L 67.5% C 0.211 H 307.5°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#BA6AF9
RGBrgb(186, 106, 249)
HSLhsl(274, 92%, 70%)
HSVhsv(274, 57%, 98%)
CMYKcmyk(25.3%, 57.4%, 0%, 2.4%)
CIE-LABlab(59.51, 56.85, -59.35)
CIE-LCHlch(59.51, 82.19, 313.77°)
OKLaboklab(67.52% 0.1283 -0.1672)
OKLCHoklch(67.52% 0.211 307.5)
XYZxyz(42.4991, 27.5872, 92.6902)
Luminance0.2759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6AF9 #A9F96A
analogous
#726AF9 #BA6AF9 #F96AF1
triadic
#BA6AF9 #F9BA6A #6AF9BA
tetradic
#BA6AF9 #F9726A #A9F96A #6AF1F9
square
#BA6AF9 #F9726A #A9F96A #6AF1F9
split-complementary
#BA6AF9 #F1F96A #6AF972
monochromatic
#8109E0 #9F2FF7 #BA6AF9 #D5A5FB #F0E0FE

Accessibility & contrast

On white

3.22
#BA6AF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#BA6AF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6AF9
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6AF9#FFFFFF#000000##000000
##BA6AF91.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#328CFE
Deuteranopia (green-blind)
#5490F6
Tritanopia (blue-blind)
#B085A8
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba6af9;
/* rgb */ color: rgb(186, 106, 249);
/* oklch */ color: oklch(67.5% 0.211 307.5);
Tailwind
colors: {
  custom: {
    50: '#d298fc',
    500: '#ba6af9',
    950: '#000000',
  },
}
SCSS
$custom: #ba6af9;
$custom-light: #d298fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6af9",
  "rgb": {
    "r": 186,
    "g": 106,
    "b": 249
  },
  "hsl": {
    "h": 273.566,
    "s": 92.258,
    "l": 69.608
  },
  "oklch": {
    "l": 0.67519,
    "c": 0.2108,
    "h": 307.5
  },
  "luminance": 0.27587
}

Semantic roles & 50–950 ramp

primary
#BA6AF9
secondary
#DDF4CB
accent
#E60065
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6AF9

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

Preview Lab → · Contrast checker → · Palette generator →

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