#BA58D2#BA58D2

#BA58D2 is a light, vivid purple. Relative luminance 0.221; OKLCH L 62.9% C 0.197 H 319.3°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#BA58D2
RGBrgb(186, 88, 210)
HSLhsl(288, 58%, 58%)
HSVhsv(288, 58%, 82%)
CMYKcmyk(11.4%, 58.1%, 0%, 17.6%)
CIE-LABlab(54.10, 57.47, -46.10)
CIE-LCHlch(54.10, 73.67, 321.26°)
OKLaboklab(62.88% 0.1495 -0.1284)
OKLCHoklch(62.88% 0.197 319.3)
XYZxyz(35.3708, 22.0732, 63.3577)
Luminance0.2207 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58D2 #70D258
analogous
#7D58D2 #BA58D2 #D258AD
triadic
#BA58D2 #D2BA58 #58D2BA
tetradic
#BA58D2 #D27D58 #70D258 #58ADD2
square
#BA58D2 #D27D58 #70D258 #58ADD2
split-complementary
#BA58D2 #ADD258 #58D27D
monochromatic
#76258A #A032BB #BA58D2 #CE88DF #E2B8EC

Accessibility & contrast

On white

3.88
#BA58D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#BA58D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58D2
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58D2#FFFFFF#000000##000000
##BA58D21.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C7BD6
Deuteranopia (green-blind)
#6085CF
Tritanopia (blue-blind)
#BA6B8D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ba58d2;
/* rgb */ color: rgb(186, 88, 210);
/* oklch */ color: oklch(62.9% 0.197 319.3);
Tailwind
colors: {
  custom: {
    50: '#d28ce0',
    500: '#ba58d2',
    950: '#000000',
  },
}
SCSS
$custom: #ba58d2;
$custom-light: #d28ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58d2",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 210
  },
  "hsl": {
    "h": 288.197,
    "s": 57.547,
    "l": 58.431
  },
  "oklch": {
    "l": 0.62876,
    "c": 0.19712,
    "h": 319.3
  },
  "luminance": 0.22072
}

Semantic roles & 50–950 ramp

primary
#BA58D2
secondary
#B4DBAB
accent
#E14765
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA58D2

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

Preview Lab → · Contrast checker → · Palette generator →

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