#BA58E5#BA58E5

#BA58E5 is a light, highly saturated purple. Relative luminance 0.231; OKLCH L 64.0% C 0.216 H 314.1°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#BA58E5
RGBrgb(186, 88, 229)
HSLhsl(282, 73%, 62%)
HSVhsv(282, 62%, 90%)
CMYKcmyk(18.8%, 61.6%, 0%, 10.2%)
CIE-LABlab(55.15, 61.27, -55.18)
CIE-LCHlch(55.15, 82.45, 317.99°)
OKLaboklab(63.98% 0.1499 -0.1549)
OKLCHoklch(63.98% 0.216 314.1)
XYZxyz(37.8799, 23.0768, 76.5724)
Luminance0.2308 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58E5 #83E558
analogous
#7458E5 #BA58E5 #E558CA
triadic
#BA58E5 #E5BA58 #58E5BA
tetradic
#BA58E5 #E57458 #83E558 #58CAE5
square
#BA58E5 #E57458 #83E558 #58CAE5
split-complementary
#BA58E5 #CAE558 #58E574
monochromatic
#7D1AA8 #A423DD #BA58E5 #D08DED #E6C2F5

Accessibility & contrast

On white

3.74
#BA58E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#BA58E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58E5
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58E5#FFFFFF#000000##000000
##BA58E51.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#237FE9
Deuteranopia (green-blind)
#5386E2
Tritanopia (blue-blind)
#B67297
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba58e5;
/* rgb */ color: rgb(186, 88, 229);
/* oklch */ color: oklch(64.0% 0.216 314.1);
Tailwind
colors: {
  custom: {
    50: '#d28dee',
    500: '#ba58e5',
    950: '#000000',
  },
}
SCSS
$custom: #ba58e5;
$custom-light: #d28dee;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58e5",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 229
  },
  "hsl": {
    "h": 281.702,
    "s": 73.057,
    "l": 62.157
  },
  "oklch": {
    "l": 0.63975,
    "c": 0.2156,
    "h": 314.1
  },
  "luminance": 0.23076
}

Semantic roles & 50–950 ramp

primary
#BA58E5
secondary
#C2E6B3
accent
#D5104C
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140D16
muted
#837D84

Preview Lab

Preview with #BA58E5

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

Preview Lab → · Contrast checker → · Palette generator →

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