#BA5FDC#BA5FDC

#BA5FDC is a light, vivid purple. Relative luminance 0.238; OKLCH L 64.3% C 0.197 H 315.9°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#BA5FDC
RGBrgb(186, 95, 220)
HSLhsl(284, 64%, 62%)
HSVhsv(284, 57%, 86%)
CMYKcmyk(15.5%, 56.8%, 0%, 13.7%)
CIE-LABlab(55.88, 56.11, -48.95)
CIE-LCHlch(55.88, 74.46, 318.90°)
OKLaboklab(64.34% 0.1412 -0.1368)
OKLCHoklch(64.34% 0.197 315.9)
XYZxyz(37.2582, 23.7921, 70.3260)
Luminance0.2379 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FDC #81DC5F
analogous
#7C5FDC #BA5FDC #DC5FC0
triadic
#BA5FDC #DCBA5F #5FDCBA
tetradic
#BA5FDC #DC7C5F #81DC5F #5FC0DC
square
#BA5FDC #DC7C5F #81DC5F #5FC0DC
split-complementary
#BA5FDC #C0DC5F #5FDC7C
monochromatic
#7C239E #A42ED0 #BA5FDC #D091E7 #E5C3F2

Accessibility & contrast

On white

3.65
#BA5FDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#BA5FDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FDC
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FDC#FFFFFF#000000##000000
##BA5FDC1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E80E0
Deuteranopia (green-blind)
#5F89D9
Tritanopia (blue-blind)
#B87495
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba5fdc;
/* rgb */ color: rgb(186, 95, 220);
/* oklch */ color: oklch(64.3% 0.197 315.9);
Tailwind
colors: {
  custom: {
    50: '#d290e7',
    500: '#ba5fdc',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fdc;
$custom-light: #d290e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fdc",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 220
  },
  "hsl": {
    "h": 283.68,
    "s": 64.103,
    "l": 61.765
  },
  "oklch": {
    "l": 0.64344,
    "c": 0.19659,
    "h": 315.9
  },
  "luminance": 0.23791
}

Semantic roles & 50–950 ramp

primary
#BA5FDC
secondary
#C1E3B4
accent
#CC1A4A
background
#FDF9FE
surface
#FAF1FC
border
#D3CBD5
text
#140D16
muted
#837E84

Preview Lab

Preview with #BA5FDC

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

Preview Lab → · Contrast checker → · Palette generator →

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