#BA5BD8#BA5BD8

#BA5BD8 is a light, vivid purple. Relative luminance 0.229; OKLCH L 63.6% C 0.199 H 317.4°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#BA5BD8
RGBrgb(186, 91, 216)
HSLhsl(286, 62%, 60%)
HSVhsv(286, 58%, 85%)
CMYKcmyk(13.9%, 57.9%, 0%, 15.3%)
CIE-LABlab(54.95, 57.23, -48.17)
CIE-LCHlch(54.95, 74.80, 319.91°)
OKLaboklab(63.6% 0.1461 -0.1345)
OKLCHoklch(63.6% 0.199 317.4)
XYZxyz(36.3837, 22.8805, 67.4523)
Luminance0.2288 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BD8 #79D85B
analogous
#7B5BD8 #BA5BD8 #D85BB7
triadic
#BA5BD8 #D8BA5B #5BD8BA
tetradic
#BA5BD8 #D87B5B #79D85B #5BB7D8
square
#BA5BD8 #D87B5B #79D85B #5BB7D8
split-complementary
#BA5BD8 #B7D85B #5BD87B
monochromatic
#7A2395 #A22FC7 #BA5BD8 #CF8CE4 #E4BEF0

Accessibility & contrast

On white

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

On black

5.58
#BA5BD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BD8
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BD8#FFFFFF#000000##000000
##BA5BD81.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba5bd8;
/* rgb */ color: rgb(186, 91, 216);
/* oklch */ color: oklch(63.6% 0.199 317.4);
Tailwind
colors: {
  custom: {
    50: '#d28ee4',
    500: '#ba5bd8',
    950: '#000000',
  },
}
SCSS
$custom: #ba5bd8;
$custom-light: #d28ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5bd8",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 216
  },
  "hsl": {
    "h": 285.6,
    "s": 61.576,
    "l": 60.196
  },
  "oklch": {
    "l": 0.63596,
    "c": 0.19853,
    "h": 317.4
  },
  "luminance": 0.22879
}

Semantic roles & 50–950 ramp

primary
#BA5BD8
secondary
#BBDFAF
accent
#C91C46
background
#FDF9FE
surface
#FAF1FC
border
#D3CBD5
text
#140D16
muted
#837E84

Preview Lab

Preview with #BA5BD8

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

Preview Lab → · Contrast checker → · Palette generator →

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