#BA5BE5#BA5BE5

#BA5BE5 is a light, highly saturated purple. Relative luminance 0.236; OKLCH L 64.3% C 0.211 H 313.8°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#BA5BE5
RGBrgb(186, 91, 229)
HSLhsl(281, 73%, 63%)
HSVhsv(281, 60%, 90%)
CMYKcmyk(18.8%, 60.3%, 0%, 10.2%)
CIE-LABlab(55.66, 59.87, -54.36)
CIE-LCHlch(55.66, 80.87, 317.76°)
OKLaboklab(64.35% 0.1464 -0.1526)
OKLCHoklch(64.35% 0.211 313.8)
XYZxyz(38.1313, 23.5795, 76.6562)
Luminance0.2358 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BE5 #86E55B
analogous
#755BE5 #BA5BE5 #E55BCB
triadic
#BA5BE5 #E5BA5B #5BE5BA
tetradic
#BA5BE5 #E5755B #86E55B #5BCBE5
square
#BA5BE5 #E5755B #86E55B #5BCBE5
split-complementary
#BA5BE5 #CBE55B #5BE575
monochromatic
#7E1BAB #A426DD #BA5BE5 #D090ED #E6C5F6

Accessibility & contrast

On white

3.67
#BA5BE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#BA5BE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BE5
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BE5#FFFFFF#000000##000000
##BA5BE51.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B80E9
Deuteranopia (green-blind)
#5588E2
Tritanopia (blue-blind)
#B67498
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba5be5;
/* rgb */ color: rgb(186, 91, 229);
/* oklch */ color: oklch(64.3% 0.211 313.8);
Tailwind
colors: {
  custom: {
    50: '#d28eee',
    500: '#ba5be5',
    950: '#000000',
  },
}
SCSS
$custom: #ba5be5;
$custom-light: #d28eee;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5be5",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 229
  },
  "hsl": {
    "h": 281.304,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.64348,
    "c": 0.21141,
    "h": 313.8
  },
  "luminance": 0.23578
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA5BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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