#BA6FFE#BA6FFE

#BA6FFE is a light, highly saturated violet. Relative luminance 0.290; OKLCH L 68.5% C 0.209 H 305.8°. Best body text is #000000 at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#BA6FFE
RGBrgb(186, 111, 254)
HSLhsl(271, 99%, 72%)
HSVhsv(271, 56%, 100%)
CMYKcmyk(26.8%, 56.3%, 0%, 0.4%)
CIE-LABlab(60.75, 55.44, -60.13)
CIE-LCHlch(60.75, 81.79, 312.68°)
OKLaboklab(68.51% 0.1223 -0.1695)
OKLCHoklch(68.51% 0.209 305.8)
XYZxyz(43.8197, 28.9641, 97.0289)
Luminance0.2896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6FFE #B3FE6F
analogous
#736FFE #BA6FFE #FE6FFA
triadic
#BA6FFE #FEBA6F #6FFEBA
tetradic
#BA6FFE #FE736F #B3FE6F #6FFAFE
square
#BA6FFE #FE736F #B3FE6F #6FFAFE
split-complementary
#BA6FFE #FAFE6F #6FFE73
monochromatic
#7F02F1 #9D32FE #BA6FFE #D7ACFE #F0E1FF

Accessibility & contrast

On white

3.09
#BA6FFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.79
#BA6FFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6FFE
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6FFE#FFFFFF#000000##000000
##BA6FFE1.003.096.796.79
#FFFFFF3.091.0021.0021.00
#0000006.7921.001.001.00
##0000006.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3890FF
Deuteranopia (green-blind)
#5593FB
Tritanopia (blue-blind)
#AF8AAC
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba6ffe;
/* rgb */ color: rgb(186, 111, 254);
/* oklch */ color: oklch(68.5% 0.209 305.8);
Tailwind
colors: {
  custom: {
    50: '#d29bff',
    500: '#ba6ffe',
    950: '#000000',
  },
}
SCSS
$custom: #ba6ffe;
$custom-light: #d29bff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6ffe",
  "rgb": {
    "r": 186,
    "g": 111,
    "b": 254
  },
  "hsl": {
    "h": 271.469,
    "s": 98.621,
    "l": 71.569
  },
  "oklch": {
    "l": 0.68514,
    "c": 0.20905,
    "h": 305.8
  },
  "luminance": 0.28964
}

Semantic roles & 50–950 ramp

primary
#BA6FFE
secondary
#E4F7D2
accent
#E6006D
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA6FFE

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

Preview Lab → · Contrast checker → · Palette generator →

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