#BA5CE4#BA5CE4

#BA5CE4 is a light, highly saturated purple. Relative luminance 0.237; OKLCH L 64.4% C 0.209 H 314.0°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#BA5CE4
RGBrgb(186, 92, 228)
HSLhsl(281, 72%, 63%)
HSVhsv(281, 60%, 89%)
CMYKcmyk(18.4%, 59.6%, 0%, 10.6%)
CIE-LABlab(55.78, 59.19, -53.61)
CIE-LCHlch(55.78, 79.86, 317.83°)
OKLaboklab(64.42% 0.1451 -0.1504)
OKLCHoklch(64.42% 0.209 314)
XYZxyz(38.0781, 23.6960, 75.9517)
Luminance0.2369 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5CE4 #86E45C
analogous
#765CE4 #BA5CE4 #E45CCA
triadic
#BA5CE4 #E4BA5C #5CE4BA
tetradic
#BA5CE4 #E4765C #86E45C #5CCAE4
square
#BA5CE4 #E4765C #86E45C #5CCAE4
split-complementary
#BA5CE4 #CAE45C #5CE476
monochromatic
#7E1CAA #A427DB #BA5CE4 #D091ED #E6C5F5

Accessibility & contrast

On white

3.66
#BA5CE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#BA5CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5CE4
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5CE4#FFFFFF#000000##000000
##BA5CE41.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F80E8
Deuteranopia (green-blind)
#5788E1
Tritanopia (blue-blind)
#B67498
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba5ce4;
/* rgb */ color: rgb(186, 92, 228);
/* oklch */ color: oklch(64.4% 0.209 314.0);
Tailwind
colors: {
  custom: {
    50: '#d28fed',
    500: '#ba5ce4',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ce4;
$custom-light: #d28fed;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ce4",
  "rgb": {
    "r": 186,
    "g": 92,
    "b": 228
  },
  "hsl": {
    "h": 281.471,
    "s": 71.579,
    "l": 62.745
  },
  "oklch": {
    "l": 0.64415,
    "c": 0.20899,
    "h": 314
  },
  "luminance": 0.23695
}

Semantic roles & 50–950 ramp

primary
#BA5CE4
secondary
#C4E7B5
accent
#D4124E
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D16
muted
#837E84

Preview Lab

Preview with #BA5CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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