#BA6FDB#BA6FDB

#BA6FDB is a light, vivid purple. Relative luminance 0.269; OKLCH L 66.6% C 0.171 H 314.7°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#BA6FDB
RGBrgb(186, 111, 219)
HSLhsl(282, 60%, 65%)
HSVhsv(282, 49%, 86%)
CMYKcmyk(15.1%, 49.3%, 0%, 14.1%)
CIE-LABlab(58.90, 47.79, -43.60)
CIE-LCHlch(58.90, 64.69, 317.62°)
OKLaboklab(66.55% 0.1199 -0.1213)
OKLCHoklch(66.55% 0.171 314.7)
XYZxyz(38.7183, 26.9235, 70.1613)
Luminance0.2692 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6FDB #90DB6F
analogous
#846FDB #BA6FDB #DB6FC6
triadic
#BA6FDB #DBBA6F #6FDBBA
tetradic
#BA6FDB #DB846F #90DB6F #6FC6DB
square
#BA6FDB #DB846F #90DB6F #6FC6DB
split-complementary
#BA6FDB #C6DB6F #6FDB84
monochromatic
#802AA6 #A33ECF #BA6FDB #D1A0E7 #E9D1F3

Accessibility & contrast

On white

3.29
#BA6FDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#BA6FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6FDB
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6FDB#FFFFFF#000000##000000
##BA6FDB1.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5889DF
Deuteranopia (green-blind)
#6E90D8
Tritanopia (blue-blind)
#B87F9B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba6fdb;
/* rgb */ color: rgb(186, 111, 219);
/* oklch */ color: oklch(66.6% 0.171 314.7);
Tailwind
colors: {
  custom: {
    50: '#d19ae6',
    500: '#ba6fdb',
    950: '#000000',
  },
}
SCSS
$custom: #ba6fdb;
$custom-light: #d19ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6fdb",
  "rgb": {
    "r": 186,
    "g": 111,
    "b": 219
  },
  "hsl": {
    "h": 281.667,
    "s": 60,
    "l": 64.706
  },
  "oklch": {
    "l": 0.66555,
    "c": 0.17059,
    "h": 314.7
  },
  "luminance": 0.26922
}

Semantic roles & 50–950 ramp

primary
#BA6FDB
secondary
#CCE5C0
accent
#C81E52
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA6FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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