#BA5CE5#BA5CE5

#BA5CE5 is a light, highly saturated purple. Relative luminance 0.238; OKLCH L 64.5% C 0.210 H 313.7°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#BA5CE5
RGBrgb(186, 92, 229)
HSLhsl(281, 72%, 63%)
HSVhsv(281, 60%, 90%)
CMYKcmyk(18.8%, 59.8%, 0%, 10.2%)
CIE-LABlab(55.84, 59.40, -54.08)
CIE-LCHlch(55.84, 80.33, 317.68°)
OKLaboklab(64.47% 0.1452 -0.1517)
OKLCHoklch(64.47% 0.21 313.7)
XYZxyz(38.2173, 23.7516, 76.6849)
Luminance0.2375 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5CE5 #87E55C
analogous
#755CE5 #BA5CE5 #E55CCB
triadic
#BA5CE5 #E5BA5C #5CE5BA
tetradic
#BA5CE5 #E5755C #87E55C #5CCBE5
square
#BA5CE5 #E5755C #87E55C #5CCBE5
split-complementary
#BA5CE5 #CBE55C #5CE575
monochromatic
#7E1BAB #A427DD #BA5CE5 #D091ED #E7C6F6

Accessibility & contrast

On white

3.65
#BA5CE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#BA5CE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5CE5
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5CE5#FFFFFF#000000##000000
##BA5CE51.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E81E9
Deuteranopia (green-blind)
#5688E2
Tritanopia (blue-blind)
#B67598
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba5ce5;
/* rgb */ color: rgb(186, 92, 229);
/* oklch */ color: oklch(64.5% 0.210 313.7);
Tailwind
colors: {
  custom: {
    50: '#d28fee',
    500: '#ba5ce5',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ce5;
$custom-light: #d28fee;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ce5",
  "rgb": {
    "r": 186,
    "g": 92,
    "b": 229
  },
  "hsl": {
    "h": 281.168,
    "s": 72.487,
    "l": 62.941
  },
  "oklch": {
    "l": 0.64474,
    "c": 0.20999,
    "h": 313.7
  },
  "luminance": 0.23751
}

Semantic roles & 50–950 ramp

primary
#BA5CE5
secondary
#C5E7B6
accent
#D5114E
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D16
muted
#837E84

Preview Lab

Preview with #BA5CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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