#BA5FD6#BA5FD6

#BA5FD6 is a light, vivid purple. Relative luminance 0.235; OKLCH L 64.0% C 0.191 H 317.7°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#BA5FD6
RGBrgb(186, 95, 214)
HSLhsl(286, 59%, 61%)
HSVhsv(286, 56%, 84%)
CMYKcmyk(13.1%, 55.6%, 0%, 16.1%)
CIE-LABlab(55.56, 54.89, -46.06)
CIE-LCHlch(55.56, 71.66, 320.00°)
OKLaboklab(64.01% 0.1408 -0.1284)
OKLCHoklch(64.01% 0.191 317.7)
XYZxyz(36.4778, 23.4799, 66.2159)
Luminance0.2348 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FD6 #7BD65F
analogous
#7E5FD6 #BA5FD6 #D65FB7
triadic
#BA5FD6 #D6BA5F #5FD6BA
tetradic
#BA5FD6 #D67E5F #7BD65F #5FB7D6
square
#BA5FD6 #D67E5F #7BD65F #5FB7D6
split-complementary
#BA5FD6 #B7D65F #5FD67E
monochromatic
#7B2695 #A333C5 #BA5FD6 #CF90E2 #E4C0EF

Accessibility & contrast

On white

3.69
#BA5FD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#BA5FD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FD6
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FD6#FFFFFF#000000##000000
##BA5FD61.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#447FDA
Deuteranopia (green-blind)
#6388D3
Tritanopia (blue-blind)
#B97292
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba5fd6;
/* rgb */ color: rgb(186, 95, 214);
/* oklch */ color: oklch(64.0% 0.191 317.7);
Tailwind
colors: {
  custom: {
    50: '#d190e3',
    500: '#ba5fd6',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fd6;
$custom-light: #d190e3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fd6",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 214
  },
  "hsl": {
    "h": 285.882,
    "s": 59.204,
    "l": 60.588
  },
  "oklch": {
    "l": 0.64011,
    "c": 0.19056,
    "h": 317.7
  },
  "luminance": 0.23479
}

Semantic roles & 50–950 ramp

primary
#BA5FD6
secondary
#BCDFB2
accent
#C71F46
background
#FDF9FD
surface
#FAF1FB
border
#D3CBD4
text
#140D15
muted
#837E83

Preview Lab

Preview with #BA5FD6

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

Preview Lab → · Contrast checker → · Palette generator →

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