#BA58EB#BA58EB

#BA58EB is a light, highly saturated purple. Relative luminance 0.234; OKLCH L 64.3% C 0.222 H 312.6°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#BA58EB
RGBrgb(186, 88, 235)
HSLhsl(280, 79%, 63%)
HSVhsv(280, 63%, 92%)
CMYKcmyk(20.9%, 62.6%, 0%, 7.8%)
CIE-LABlab(55.50, 62.50, -57.99)
CIE-LCHlch(55.50, 85.26, 317.15°)
OKLaboklab(64.34% 0.1498 -0.1632)
OKLCHoklch(64.34% 0.222 312.6)
XYZxyz(38.7322, 23.4177, 81.0609)
Luminance0.2342 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58EB #89EB58
analogous
#7058EB #BA58EB #EB58D2
triadic
#BA58EB #EBBA58 #58EBBA
tetradic
#BA58EB #EB7058 #89EB58 #58D2EB
square
#BA58EB #EB7058 #89EB58 #58D2EB
split-complementary
#BA58EB #D2EB58 #58EB70
monochromatic
#7F15B3 #A321E4 #BA58EB #D18FF2 #E7C5F8

Accessibility & contrast

On white

3.69
#BA58EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#BA58EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58EB
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58EB#FFFFFF#000000##000000
##BA58EB1.003.695.685.68
#FFFFFF3.691.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1580F0
Deuteranopia (green-blind)
#4D87E8
Tritanopia (blue-blind)
#B5749A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba58eb;
/* rgb */ color: rgb(186, 88, 235);
/* oklch */ color: oklch(64.3% 0.222 312.6);
Tailwind
colors: {
  custom: {
    50: '#d28df2',
    500: '#ba58eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba58eb;
$custom-light: #d28df2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58eb",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 235
  },
  "hsl": {
    "h": 280,
    "s": 78.61,
    "l": 63.333
  },
  "oklch": {
    "l": 0.6434,
    "c": 0.2215,
    "h": 312.6
  },
  "luminance": 0.23417
}

Semantic roles & 50–950 ramp

primary
#BA58EB
secondary
#C7EAB5
accent
#DB0B50
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150D17
muted
#837D85

Preview Lab

Preview with #BA58EB

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

Preview Lab → · Contrast checker → · Palette generator →

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