#BA5FD2#BA5FD2

#BA5FD2 is a light, vivid purple. Relative luminance 0.233; OKLCH L 63.8% C 0.187 H 318.9°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#BA5FD2
RGBrgb(186, 95, 210)
HSLhsl(287, 56%, 60%)
HSVhsv(287, 55%, 82%)
CMYKcmyk(11.4%, 54.8%, 0%, 17.6%)
CIE-LABlab(55.36, 54.10, -44.12)
CIE-LCHlch(55.36, 69.81, 320.80°)
OKLaboklab(63.79% 0.1405 -0.1227)
OKLCHoklch(63.79% 0.187 318.9)
XYZxyz(35.9732, 23.2781, 63.5585)
Luminance0.2328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FD2 #77D25F
analogous
#805FD2 #BA5FD2 #D25FB1
triadic
#BA5FD2 #D2BA5F #5FD2BA
tetradic
#BA5FD2 #D2805F #77D25F #5FB1D2
square
#BA5FD2 #D2805F #77D25F #5FB1D2
split-complementary
#BA5FD2 #B1D25F #5FD280
monochromatic
#79288F #A236BE #BA5FD2 #CF8FDF #E3BFED

Accessibility & contrast

On white

3.71
#BA5FD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#BA5FD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FD2
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FD2#FFFFFF#000000##000000
##BA5FD21.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#477ED6
Deuteranopia (green-blind)
#6688CF
Tritanopia (blue-blind)
#BA7090
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba5fd2;
/* rgb */ color: rgb(186, 95, 210);
/* oklch */ color: oklch(63.8% 0.187 318.9);
Tailwind
colors: {
  custom: {
    50: '#d190e0',
    500: '#ba5fd2',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fd2;
$custom-light: #d190e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fd2",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 210
  },
  "hsl": {
    "h": 287.478,
    "s": 56.098,
    "l": 59.804
  },
  "oklch": {
    "l": 0.63793,
    "c": 0.18658,
    "h": 318.9
  },
  "luminance": 0.23277
}

Semantic roles & 50–950 ramp

primary
#BA5FD2
secondary
#B9DDB0
accent
#DF4868
background
#FDF9FD
surface
#FAF1FB
border
#D3CBD4
text
#140D15
muted
#837E83

Preview Lab

Preview with #BA5FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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