#BA5FD8#BA5FD8

#BA5FD8 is a light, vivid purple. Relative luminance 0.236; OKLCH L 64.1% C 0.193 H 317.1°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#BA5FD8
RGBrgb(186, 95, 216)
HSLhsl(285, 61%, 61%)
HSVhsv(285, 56%, 85%)
CMYKcmyk(13.9%, 56%, 0%, 15.3%)
CIE-LABlab(55.67, 55.30, -47.03)
CIE-LCHlch(55.67, 72.59, 319.62°)
OKLaboklab(64.12% 0.141 -0.1312)
OKLCHoklch(64.12% 0.193 317.1)
XYZxyz(36.7348, 23.5827, 67.5693)
Luminance0.2358 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FD8 #7DD85F
analogous
#7D5FD8 #BA5FD8 #D85FB9
triadic
#BA5FD8 #D8BA5F #5FD8BA
tetradic
#BA5FD8 #D87D5F #7DD85F #5FB9D8
square
#BA5FD8 #D87D5F #7DD85F #5FB9D8
split-complementary
#BA5FD8 #B9D85F #5FD87D
monochromatic
#7B2598 #A331C9 #BA5FD8 #CF90E4 #E4C1F0

Accessibility & contrast

On white

3.67
#BA5FD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#BA5FD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FD8
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FD8#FFFFFF#000000##000000
##BA5FD81.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4280DC
Deuteranopia (green-blind)
#6288D5
Tritanopia (blue-blind)
#B97293
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba5fd8;
/* rgb */ color: rgb(186, 95, 216);
/* oklch */ color: oklch(64.1% 0.193 317.1);
Tailwind
colors: {
  custom: {
    50: '#d190e4',
    500: '#ba5fd8',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fd8;
$custom-light: #d190e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fd8",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 216
  },
  "hsl": {
    "h": 285.124,
    "s": 60.804,
    "l": 60.98
  },
  "oklch": {
    "l": 0.64121,
    "c": 0.19256,
    "h": 317.1
  },
  "luminance": 0.23581
}

Semantic roles & 50–950 ramp

primary
#BA5FD8
secondary
#BEE0B3
accent
#C81D48
background
#FDF9FE
surface
#FAF1FC
border
#D3CBD5
text
#140D16
muted
#837E84

Preview Lab

Preview with #BA5FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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