#BA5BD7#BA5BD7

#BA5BD7 is a light, vivid purple. Relative luminance 0.228; OKLCH L 63.5% C 0.198 H 317.7°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#BA5BD7
RGBrgb(186, 91, 215)
HSLhsl(286, 61%, 60%)
HSVhsv(286, 58%, 84%)
CMYKcmyk(13.5%, 57.7%, 0%, 15.7%)
CIE-LABlab(54.90, 57.03, -47.69)
CIE-LCHlch(54.90, 74.34, 320.10°)
OKLaboklab(63.54% 0.146 -0.1331)
OKLCHoklch(63.54% 0.198 317.7)
XYZxyz(36.2548, 22.8290, 66.7735)
Luminance0.2283 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BD7 #78D75B
analogous
#7C5BD7 #BA5BD7 #D75BB6
triadic
#BA5BD7 #D7BA5B #5BD7BA
tetradic
#BA5BD7 #D77C5B #78D75B #5BB6D7
square
#BA5BD7 #D77C5B #78D75B #5BB6D7
split-complementary
#BA5BD7 #B6D75B #5BD77C
monochromatic
#7A2494 #A230C5 #BA5BD7 #CF8CE3 #E3BDEF

Accessibility & contrast

On white

3.77
#BA5BD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#BA5BD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BD7
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BD7#FFFFFF#000000##000000
##BA5BD71.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C7DDB
Deuteranopia (green-blind)
#5F86D4
Tritanopia (blue-blind)
#B96F91
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba5bd7;
/* rgb */ color: rgb(186, 91, 215);
/* oklch */ color: oklch(63.5% 0.198 317.7);
Tailwind
colors: {
  custom: {
    50: '#d28ee4',
    500: '#ba5bd7',
    950: '#000000',
  },
}
SCSS
$custom: #ba5bd7;
$custom-light: #d28ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5bd7",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 215
  },
  "hsl": {
    "h": 285.968,
    "s": 60.784,
    "l": 60
  },
  "oklch": {
    "l": 0.6354,
    "c": 0.19755,
    "h": 317.7
  },
  "luminance": 0.22828
}

Semantic roles & 50–950 ramp

primary
#BA5BD7
secondary
#BADFAF
accent
#E44469
background
#FDF9FE
surface
#FAF1FC
border
#D3CBD5
text
#140D15
muted
#837E84

Preview Lab

Preview with #BA5BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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