#BA5BE7#BA5BE7

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

Color values

HEX#BA5BE7
RGBrgb(186, 91, 231)
HSLhsl(281, 74%, 63%)
HSVhsv(281, 61%, 91%)
CMYKcmyk(19.5%, 60.6%, 0%, 9.4%)
CIE-LABlab(55.78, 60.28, -55.30)
CIE-LCHlch(55.78, 81.81, 317.47°)
OKLaboklab(64.47% 0.1464 -0.1553)
OKLCHoklch(64.47% 0.213 313.3)
XYZxyz(38.4121, 23.6919, 78.1353)
Luminance0.2369 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BE7 #88E75B
analogous
#745BE7 #BA5BE7 #E75BCE
triadic
#BA5BE7 #E7BA5B #5BE7BA
tetradic
#BA5BE7 #E7745B #88E75B #5BCEE7
square
#BA5BE7 #E7745B #88E75B #5BCEE7
split-complementary
#BA5BE7 #CEE75B #5BE774
monochromatic
#7E19AE #A426DF #BA5BE7 #D090EF #E7C6F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA5BE7#FFFFFF#000000##000000
##BA5BE71.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)
#2881EB
Deuteranopia (green-blind)
#5488E4
Tritanopia (blue-blind)
#B67599
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba5be7;
/* rgb */ color: rgb(186, 91, 231);
/* oklch */ color: oklch(64.5% 0.213 313.3);
Tailwind
colors: {
  custom: {
    50: '#d28eef',
    500: '#ba5be7',
    950: '#000000',
  },
}
SCSS
$custom: #ba5be7;
$custom-light: #d28eef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5be7",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 231
  },
  "hsl": {
    "h": 280.714,
    "s": 74.468,
    "l": 63.137
  },
  "oklch": {
    "l": 0.64467,
    "c": 0.21341,
    "h": 313.3
  },
  "luminance": 0.23691
}

Semantic roles & 50–950 ramp

primary
#BA5BE7
secondary
#C6E8B6
accent
#D70F4F
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D16
muted
#837E84

Preview Lab

Preview with #BA5BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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