#BA5ECC#BA5ECC

#BA5ECC is a light, vivid purple. Relative luminance 0.228; OKLCH L 63.3% C 0.182 H 320.9°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#BA5ECC
RGBrgb(186, 94, 204)
HSLhsl(290, 52%, 58%)
HSVhsv(290, 54%, 80%)
CMYKcmyk(8.8%, 53.9%, 0%, 20%)
CIE-LABlab(54.87, 53.41, -41.47)
CIE-LCHlch(54.87, 67.62, 322.17°)
OKLaboklab(63.34% 0.1413 -0.115)
OKLCHoklch(63.34% 0.182 320.9)
XYZxyz(35.1502, 22.8057, 59.6654)
Luminance0.2280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5ECC #70CC5E
analogous
#835ECC #BA5ECC #CC5EA7
triadic
#BA5ECC #CCBA5E #5ECCBA
tetradic
#BA5ECC #CC835E #70CC5E #5EA7CC
square
#BA5ECC #CC835E #70CC5E #5EA7CC
split-complementary
#BA5ECC #A7CC5E #5ECC83
monochromatic
#762A85 #A039B4 #BA5ECC #CE8CDB #E2BBE9

Accessibility & contrast

On white

3.78
#BA5ECC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#BA5ECC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5ECC
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5ECC#FFFFFF#000000##000000
##BA5ECC1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A7DD0
Deuteranopia (green-blind)
#6887C9
Tritanopia (blue-blind)
#BC6E8C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba5ecc;
/* rgb */ color: rgb(186, 94, 204);
/* oklch */ color: oklch(63.3% 0.182 320.9);
Tailwind
colors: {
  custom: {
    50: '#d190dc',
    500: '#ba5ecc',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ecc;
$custom-light: #d190dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ecc",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 204
  },
  "hsl": {
    "h": 290.182,
    "s": 51.887,
    "l": 58.431
  },
  "oklch": {
    "l": 0.63338,
    "c": 0.18222,
    "h": 320.9
  },
  "luminance": 0.22804
}

Semantic roles & 50–950 ramp

primary
#BA5ECC
secondary
#B4D9AD
accent
#DB4C64
background
#FDF9FD
surface
#FAF1FB
border
#D3CBD4
text
#140D15
muted
#837E83

Preview Lab

Preview with #BA5ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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