#BA59BF#BA59BF

#BA59BF is a mid, vivid purple. Relative luminance 0.213; OKLCH L 62.0% C 0.178 H 325.6°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#BA59BF
RGBrgb(186, 89, 191)
HSLhsl(297, 44%, 55%)
HSVhsv(297, 53%, 75%)
CMYKcmyk(2.6%, 53.4%, 0%, 25.1%)
CIE-LABlab(53.33, 53.39, -36.45)
CIE-LCHlch(53.33, 64.65, 325.68°)
OKLaboklab(62% 0.1466 -0.1005)
OKLCHoklch(62% 0.178 325.6)
XYZxyz(33.2253, 21.3472, 51.6505)
Luminance0.2135 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA59BF #5EBF59
analogous
#8759BF #BA59BF #BF5991
triadic
#BA59BF #BFBA59 #59BFBA
tetradic
#BA59BF #BF8759 #5EBF59 #5991BF
square
#BA59BF #BF8759 #5EBF59 #5991BF
split-complementary
#BA59BF #91BF59 #59BF87
monochromatic
#6E2C72 #993D9E #BA59BF #CC85D0 #DFB1E1

Accessibility & contrast

On white

3.99
#BA59BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#BA59BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA59BF
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA59BF#FFFFFF#000000##000000
##BA59BF1.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C78C2
Deuteranopia (green-blind)
#6B84BC
Tritanopia (blue-blind)
#BE6584
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba59bf;
/* rgb */ color: rgb(186, 89, 191);
/* oklch */ color: oklch(62.0% 0.178 325.6);
Tailwind
colors: {
  custom: {
    50: '#d18cd2',
    500: '#ba59bf',
    950: '#000000',
  },
}
SCSS
$custom: #ba59bf;
$custom-light: #d18cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba59bf",
  "rgb": {
    "r": 186,
    "g": 89,
    "b": 191
  },
  "hsl": {
    "h": 297.059,
    "s": 44.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.61997,
    "c": 0.17772,
    "h": 325.6
  },
  "luminance": 0.21345
}

Semantic roles & 50–950 ramp

primary
#BA59BF
secondary
#A7CFA4
accent
#D4545A
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA59BF

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

Preview Lab → · Contrast checker → · Palette generator →

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