#BA58BD#BA58BD

#BA58BD is a mid, vivid purple. Relative luminance 0.211; OKLCH L 61.8% C 0.177 H 326.3°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#BA58BD
RGBrgb(186, 88, 189)
HSLhsl(298, 43%, 54%)
HSVhsv(298, 53%, 74%)
CMYKcmyk(1.6%, 53.4%, 0%, 25.9%)
CIE-LABlab(53.05, 53.51, -35.73)
CIE-LCHlch(53.05, 64.34, 326.27°)
OKLaboklab(61.76% 0.1477 -0.0984)
OKLCHoklch(61.76% 0.177 326.3)
XYZxyz(32.9241, 21.0945, 50.4717)
Luminance0.2109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58BD #5BBD58
analogous
#8858BD #BA58BD #BD588E
triadic
#BA58BD #BDBA58 #58BDBA
tetradic
#BA58BD #BD8858 #5BBD58 #588EBD
square
#BA58BD #BD8858 #5BBD58 #588EBD
split-complementary
#BA58BD #8EBD58 #58BD88
monochromatic
#6D2C6F #983D9B #BA58BD #CC84CE #DEB0E0

Accessibility & contrast

On white

4.02
#BA58BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#BA58BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58BD
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58BD#FFFFFF#000000##000000
##BA58BD1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D77C0
Deuteranopia (green-blind)
#6B83BA
Tritanopia (blue-blind)
#BF6482
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba58bd;
/* rgb */ color: rgb(186, 88, 189);
/* oklch */ color: oklch(61.8% 0.177 326.3);
Tailwind
colors: {
  custom: {
    50: '#d18cd1',
    500: '#ba58bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba58bd;
$custom-light: #d18cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58bd",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 189
  },
  "hsl": {
    "h": 298.218,
    "s": 43.348,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61764,
    "c": 0.17745,
    "h": 326.3
  },
  "luminance": 0.21093
}

Semantic roles & 50–950 ramp

primary
#BA58BD
secondary
#A4CEA3
accent
#D35558
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA58BD

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

Preview Lab → · Contrast checker → · Palette generator →

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