#BA5FDF#BA5FDF

#BA5FDF is a light, vivid purple. Relative luminance 0.240; OKLCH L 64.5% C 0.200 H 315.1°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#BA5FDF
RGBrgb(186, 95, 223)
HSLhsl(283, 67%, 62%)
HSVhsv(283, 57%, 87%)
CMYKcmyk(16.6%, 57.4%, 0%, 12.5%)
CIE-LABlab(56.04, 56.72, -50.39)
CIE-LCHlch(56.04, 75.87, 318.38°)
OKLaboklab(64.51% 0.1413 -0.141)
OKLCHoklch(64.51% 0.2 315.1)
XYZxyz(37.6591, 23.9524, 72.4372)
Luminance0.2395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FDF #84DF5F
analogous
#7A5FDF #BA5FDF #DF5FC4
triadic
#BA5FDF #DFBA5F #5FDFBA
tetradic
#BA5FDF #DF7A5F #84DF5F #5FC4DF
square
#BA5FDF #DF7A5F #84DF5F #5FC4DF
split-complementary
#BA5FDF #C4DF5F #5FDF7A
monochromatic
#7D21A3 #A42CD5 #BA5FDF #D092E9 #E6C5F3

Accessibility & contrast

On white

3.63
#BA5FDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#BA5FDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FDF
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FDF#FFFFFF#000000##000000
##BA5FDF1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B81E3
Deuteranopia (green-blind)
#5D89DC
Tritanopia (blue-blind)
#B77596
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba5fdf;
/* rgb */ color: rgb(186, 95, 223);
/* oklch */ color: oklch(64.5% 0.200 315.1);
Tailwind
colors: {
  custom: {
    50: '#d291e9',
    500: '#ba5fdf',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fdf;
$custom-light: #d291e9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fdf",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 223
  },
  "hsl": {
    "h": 282.656,
    "s": 66.667,
    "l": 62.353
  },
  "oklch": {
    "l": 0.64514,
    "c": 0.19961,
    "h": 315.1
  },
  "luminance": 0.23951
}

Semantic roles & 50–950 ramp

primary
#BA5FDF
secondary
#C3E4B6
accent
#CF174C
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D16
muted
#837E84

Preview Lab

Preview with #BA5FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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