#BA58DB#BA58DB

#BA58DB is a light, highly saturated purple. Relative luminance 0.225; OKLCH L 63.4% C 0.206 H 316.7°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#BA58DB
RGBrgb(186, 88, 219)
HSLhsl(285, 65%, 60%)
HSVhsv(285, 60%, 86%)
CMYKcmyk(15.1%, 59.8%, 0%, 14.1%)
CIE-LABlab(54.59, 59.24, -50.44)
CIE-LCHlch(54.59, 77.81, 319.59°)
OKLaboklab(63.39% 0.1499 -0.1411)
OKLCHoklch(63.39% 0.206 316.7)
XYZxyz(36.5237, 22.5344, 69.4297)
Luminance0.2253 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58DB #79DB58
analogous
#7858DB #BA58DB #DB58BB
triadic
#BA58DB #DBBA58 #58DBBA
tetradic
#BA58DB #DB7858 #79DB58 #58BBDB
square
#BA58DB #DB7858 #79DB58 #58BBDB
split-complementary
#BA58DB #BBDB58 #58DB78
monochromatic
#7A2198 #A22CCA #BA58DB #CF8AE6 #E4BDF1

Accessibility & contrast

On white

3.81
#BA58DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#BA58DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58DB
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58DB#FFFFFF#000000##000000
##BA58DB1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#327CDF
Deuteranopia (green-blind)
#5A86D8
Tritanopia (blue-blind)
#B96E91
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba58db;
/* rgb */ color: rgb(186, 88, 219);
/* oklch */ color: oklch(63.4% 0.206 316.7);
Tailwind
colors: {
  custom: {
    50: '#d28ce7',
    500: '#ba58db',
    950: '#000000',
  },
}
SCSS
$custom: #ba58db;
$custom-light: #d28ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58db",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 219
  },
  "hsl": {
    "h": 284.885,
    "s": 64.532,
    "l": 60.196
  },
  "oklch": {
    "l": 0.63386,
    "c": 0.20582,
    "h": 316.7
  },
  "luminance": 0.22533
}

Semantic roles & 50–950 ramp

primary
#BA58DB
secondary
#BBE1AE
accent
#CC1946
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA58DB

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

Preview Lab → · Contrast checker → · Palette generator →

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