#BA6BE4#BA6BE4

#BA6BE4 is a light, vivid violet. Relative luminance 0.266; OKLCH L 66.5% C 0.187 H 312.5°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#BA6BE4
RGBrgb(186, 107, 228)
HSLhsl(279, 69%, 66%)
HSVhsv(279, 53%, 89%)
CMYKcmyk(18.4%, 53.1%, 0%, 10.6%)
CIE-LABlab(58.56, 51.77, -49.19)
CIE-LCHlch(58.56, 71.41, 316.46°)
OKLaboklab(66.45% 0.1262 -0.1375)
OKLCHoklch(66.45% 0.187 312.5)
XYZxyz(39.5086, 26.5569, 76.4285)
Luminance0.2656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6BE4 #95E46B
analogous
#7D6BE4 #BA6BE4 #E46BD1
triadic
#BA6BE4 #E4BA6B #6BE4BA
tetradic
#BA6BE4 #E47D6B #95E46B #6BD1E4
square
#BA6BE4 #E47D6B #95E46B #6BD1E4
split-complementary
#BA6BE4 #D1E46B #6BE47D
monochromatic
#8121B4 #A237DB #BA6BE4 #D29FED #EAD3F7

Accessibility & contrast

On white

3.33
#BA6BE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#BA6BE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6BE4
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6BE4#FFFFFF#000000##000000
##BA6BE41.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B89E8
Deuteranopia (green-blind)
#658FE1
Tritanopia (blue-blind)
#B67F9E
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba6be4;
/* rgb */ color: rgb(186, 107, 228);
/* oklch */ color: oklch(66.5% 0.187 312.5);
Tailwind
colors: {
  custom: {
    50: '#d198ed',
    500: '#ba6be4',
    950: '#000000',
  },
}
SCSS
$custom: #ba6be4;
$custom-light: #d198ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6be4",
  "rgb": {
    "r": 186,
    "g": 107,
    "b": 228
  },
  "hsl": {
    "h": 279.174,
    "s": 69.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.6645,
    "c": 0.18664,
    "h": 312.5
  },
  "luminance": 0.26556
}

Semantic roles & 50–950 ramp

primary
#BA6BE4
secondary
#CFEAC1
accent
#D11456
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA6BE4

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

Preview Lab → · Contrast checker → · Palette generator →

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