#BA5EDB#BA5EDB

#BA5EDB is a light, vivid purple. Relative luminance 0.236; OKLCH L 64.2% C 0.197 H 316.3°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#BA5EDB
RGBrgb(186, 94, 219)
HSLhsl(284, 63%, 61%)
HSVhsv(284, 57%, 86%)
CMYKcmyk(15.1%, 57.1%, 0%, 14.1%)
CIE-LABlab(55.64, 56.39, -48.76)
CIE-LCHlch(55.64, 74.55, 319.15°)
OKLaboklab(64.16% 0.1424 -0.1362)
OKLCHoklch(64.16% 0.197 316.3)
XYZxyz(37.0367, 23.5603, 69.6007)
Luminance0.2356 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5EDB #7FDB5E
analogous
#7C5EDB #BA5EDB #DB5EBE
triadic
#BA5EDB #DBBA5E #5EDBBA
tetradic
#BA5EDB #DB7C5E #7FDB5E #5EBEDB
square
#BA5EDB #DB7C5E #7FDB5E #5EBEDB
split-complementary
#BA5EDB #BEDB5E #5EDB7C
monochromatic
#7C239C #A42ECE #BA5EDB #CF90E6 #E5C2F1

Accessibility & contrast

On white

3.68
#BA5EDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#BA5EDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5EDB
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5EDB#FFFFFF#000000##000000
##BA5EDB1.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E80DF
Deuteranopia (green-blind)
#5F88D8
Tritanopia (blue-blind)
#B87394
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba5edb;
/* rgb */ color: rgb(186, 94, 219);
/* oklch */ color: oklch(64.2% 0.197 316.3);
Tailwind
colors: {
  custom: {
    50: '#d290e7',
    500: '#ba5edb',
    950: '#000000',
  },
}
SCSS
$custom: #ba5edb;
$custom-light: #d290e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5edb",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 219
  },
  "hsl": {
    "h": 284.16,
    "s": 63.452,
    "l": 61.373
  },
  "oklch": {
    "l": 0.64156,
    "c": 0.19707,
    "h": 316.3
  },
  "luminance": 0.23559
}

Semantic roles & 50–950 ramp

primary
#BA5EDB
secondary
#BFE2B3
accent
#CB1A49
background
#FDF9FE
surface
#FAF1FC
border
#D3CBD5
text
#140D16
muted
#837E84

Preview Lab

Preview with #BA5EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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