#BA6BF5#BA6BF5

#BA6BF5 is a light, highly saturated violet. Relative luminance 0.275; OKLCH L 67.4% C 0.205 H 308.3°. Best body text is #000000 at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#BA6BF5
RGBrgb(186, 107, 245)
HSLhsl(274, 87%, 69%)
HSVhsv(274, 56%, 96%)
CMYKcmyk(24.1%, 56.3%, 0%, 3.9%)
CIE-LABlab(59.48, 55.46, -57.20)
CIE-LCHlch(59.48, 79.67, 314.12°)
OKLaboklab(67.42% 0.127 -0.1609)
OKLCHoklch(67.42% 0.205 308.3)
XYZxyz(41.9855, 27.5477, 89.4739)
Luminance0.2755 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6BF5 #A6F56B
analogous
#756BF5 #BA6BF5 #F56BEB
triadic
#BA6BF5 #F5BA6B #6BF5BA
tetradic
#BA6BF5 #F5756B #A6F56B #6BEBF5
square
#BA6BF5 #F5756B #A6F56B #6BEBF5
split-complementary
#BA6BF5 #EBF56B #6BF575
monochromatic
#810FD7 #9F32F1 #BA6BF5 #D5A4F9 #EFDEFD

Accessibility & contrast

On white

3.23
#BA6BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.51
#BA6BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6BF5
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6BF5#FFFFFF#000000##000000
##BA6BF51.003.236.516.51
#FFFFFF3.231.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A8CF9
Deuteranopia (green-blind)
#5990F2
Tritanopia (blue-blind)
#B185A6
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba6bf5;
/* rgb */ color: rgb(186, 107, 245);
/* oklch */ color: oklch(67.4% 0.205 308.3);
Tailwind
colors: {
  custom: {
    50: '#d298f9',
    500: '#ba6bf5',
    950: '#000000',
  },
}
SCSS
$custom: #ba6bf5;
$custom-light: #d298f9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6bf5",
  "rgb": {
    "r": 186,
    "g": 107,
    "b": 245
  },
  "hsl": {
    "h": 274.348,
    "s": 87.342,
    "l": 69.02
  },
  "oklch": {
    "l": 0.67419,
    "c": 0.20502,
    "h": 308.3
  },
  "luminance": 0.27547
}

Semantic roles & 50–950 ramp

primary
#BA6BF5
secondary
#DBF2CA
accent
#E40262
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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