#BA5CE7#BA5CE7

#BA5CE7 is a light, highly saturated purple. Relative luminance 0.239; OKLCH L 64.6% C 0.212 H 313.2°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#BA5CE7
RGBrgb(186, 92, 231)
HSLhsl(281, 74%, 63%)
HSVhsv(281, 60%, 91%)
CMYKcmyk(19.5%, 60.2%, 0%, 9.4%)
CIE-LABlab(55.95, 59.81, -55.03)
CIE-LCHlch(55.95, 81.27, 317.39°)
OKLaboklab(64.59% 0.1452 -0.1545)
OKLCHoklch(64.59% 0.212 313.2)
XYZxyz(38.4982, 23.8640, 78.1640)
Luminance0.2386 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5CE7 #89E75C
analogous
#745CE7 #BA5CE7 #E75CCE
triadic
#BA5CE7 #E7BA5C #5CE7BA
tetradic
#BA5CE7 #E7745C #89E75C #5CCEE7
square
#BA5CE7 #E7745C #89E75C #5CCEE7
split-complementary
#BA5CE7 #CEE75C #5CE774
monochromatic
#7F1AAF #A327DF #BA5CE7 #D191EF #E7C7F7

Accessibility & contrast

On white

3.64
#BA5CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#BA5CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5CE7
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5CE7#FFFFFF#000000##000000
##BA5CE71.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B81EB
Deuteranopia (green-blind)
#5588E4
Tritanopia (blue-blind)
#B67599
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba5ce7;
/* rgb */ color: rgb(186, 92, 231);
/* oklch */ color: oklch(64.6% 0.212 313.2);
Tailwind
colors: {
  custom: {
    50: '#d28fef',
    500: '#ba5ce7',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ce7;
$custom-light: #d28fef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ce7",
  "rgb": {
    "r": 186,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 280.576,
    "s": 74.332,
    "l": 63.333
  },
  "oklch": {
    "l": 0.64593,
    "c": 0.212,
    "h": 313.2
  },
  "luminance": 0.23863
}

Semantic roles & 50–950 ramp

primary
#BA5CE7
secondary
#C7E8B7
accent
#D60F50
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D16
muted
#837E84

Preview Lab

Preview with #BA5CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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