#BA59BD#BA59BD

#BA59BD is a mid, vivid purple. Relative luminance 0.213; OKLCH L 61.9% C 0.176 H 326.3°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#BA59BD
RGBrgb(186, 89, 189)
HSLhsl(298, 43%, 55%)
HSVhsv(298, 53%, 74%)
CMYKcmyk(1.6%, 52.9%, 0%, 25.9%)
CIE-LABlab(53.23, 53.03, -35.45)
CIE-LCHlch(53.23, 63.78, 326.24°)
OKLaboklab(61.9% 0.1463 -0.0976)
OKLCHoklch(61.9% 0.176 326.3)
XYZxyz(33.0067, 21.2598, 50.4992)
Luminance0.2126 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA59BD #5CBD59
analogous
#8859BD #BA59BD #BD598E
triadic
#BA59BD #BDBA59 #59BDBA
tetradic
#BA59BD #BD8859 #5CBD59 #598EBD
square
#BA59BD #BD8859 #5CBD59 #598EBD
split-complementary
#BA59BD #8EBD59 #59BD88
monochromatic
#6D2C6F #983E9B #BA59BD #CC85CE #DEB1E0

Accessibility & contrast

On white

4.00
#BA59BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#BA59BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA59BD
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA59BD#FFFFFF#000000##000000
##BA59BD1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E77C0
Deuteranopia (green-blind)
#6C83BA
Tritanopia (blue-blind)
#BE6583
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba59bd;
/* rgb */ color: rgb(186, 89, 189);
/* oklch */ color: oklch(61.9% 0.176 326.3);
Tailwind
colors: {
  custom: {
    50: '#d18cd1',
    500: '#ba59bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba59bd;
$custom-light: #d18cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba59bd",
  "rgb": {
    "r": 186,
    "g": 89,
    "b": 189
  },
  "hsl": {
    "h": 298.2,
    "s": 43.103,
    "l": 54.51
  },
  "oklch": {
    "l": 0.61896,
    "c": 0.17589,
    "h": 326.3
  },
  "luminance": 0.21258
}

Semantic roles & 50–950 ramp

primary
#BA59BD
secondary
#A5CEA4
accent
#D35559
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA59BD

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

Preview Lab → · Contrast checker → · Palette generator →

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