#BA5ECA#BA5ECA

#BA5ECA is a light, vivid purple. Relative luminance 0.227; OKLCH L 63.2% C 0.180 H 321.5°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#BA5ECA
RGBrgb(186, 94, 202)
HSLhsl(291, 50%, 58%)
HSVhsv(291, 53%, 79%)
CMYKcmyk(7.9%, 53.5%, 0%, 20.8%)
CIE-LABlab(54.77, 53.03, -40.49)
CIE-LCHlch(54.77, 66.72, 322.64°)
OKLaboklab(63.23% 0.1411 -0.1122)
OKLCHoklch(63.23% 0.18 321.5)
XYZxyz(34.9119, 22.7103, 58.4102)
Luminance0.2271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5ECA #6ECA5E
analogous
#845ECA #BA5ECA #CA5EA4
triadic
#BA5ECA #CABA5E #5ECABA
tetradic
#BA5ECA #CA845E #6ECA5E #5EA4CA
square
#BA5ECA #CA845E #6ECA5E #5EA4CA
split-complementary
#BA5ECA #A4CA5E #5ECA84
monochromatic
#762B83 #9F3AB1 #BA5ECA #CE8CD9 #E1BAE8

Accessibility & contrast

On white

3.79
#BA5ECA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#BA5ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5ECA
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5ECA#FFFFFF#000000##000000
##BA5ECA1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7CCE
Deuteranopia (green-blind)
#6987C7
Tritanopia (blue-blind)
#BC6D8B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba5eca;
/* rgb */ color: rgb(186, 94, 202);
/* oklch */ color: oklch(63.2% 0.180 321.5);
Tailwind
colors: {
  custom: {
    50: '#d18fda',
    500: '#ba5eca',
    950: '#000000',
  },
}
SCSS
$custom: #ba5eca;
$custom-light: #d18fda;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5eca",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 202
  },
  "hsl": {
    "h": 291.111,
    "s": 50.467,
    "l": 58.039
  },
  "oklch": {
    "l": 0.63233,
    "c": 0.18028,
    "h": 321.5
  },
  "luminance": 0.22709
}

Semantic roles & 50–950 ramp

primary
#BA5ECA
secondary
#B3D7AC
accent
#DA4E63
background
#FDF9FD
surface
#FAF1FB
border
#D3CBD4
text
#140D15
muted
#837E83

Preview Lab

Preview with #BA5ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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