#BA59BC#BA59BC

#BA59BC is a mid, vivid purple. Relative luminance 0.212; OKLCH L 61.8% C 0.175 H 326.7°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#BA59BC
RGBrgb(186, 89, 188)
HSLhsl(299, 42%, 54%)
HSVhsv(299, 53%, 74%)
CMYKcmyk(1.1%, 52.7%, 0%, 26.3%)
CIE-LABlab(53.19, 52.85, -34.94)
CIE-LCHlch(53.19, 63.35, 326.53°)
OKLaboklab(61.85% 0.1462 -0.0961)
OKLCHoklch(61.85% 0.175 326.7)
XYZxyz(32.8986, 21.2165, 49.9296)
Luminance0.2122 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA59BC #5BBC59
analogous
#8959BC #BA59BC #BC598D
triadic
#BA59BC #BCBA59 #59BCBA
tetradic
#BA59BC #BC8959 #5BBC59 #598DBC
square
#BA59BC #BC8959 #5BBC59 #598DBC
split-complementary
#BA59BC #8DBC59 #59BC89
monochromatic
#6D2C6E #983E9A #BA59BC #CC85CE #DEB0DF

Accessibility & contrast

On white

4.01
#BA59BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#BA59BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA59BC
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA59BC#FFFFFF#000000##000000
##BA59BC1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba59bc;
/* rgb */ color: rgb(186, 89, 188);
/* oklch */ color: oklch(61.8% 0.175 326.7);
Tailwind
colors: {
  custom: {
    50: '#d18cd0',
    500: '#ba59bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba59bc;
$custom-light: #d18cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba59bc",
  "rgb": {
    "r": 186,
    "g": 89,
    "b": 188
  },
  "hsl": {
    "h": 298.788,
    "s": 42.489,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61847,
    "c": 0.17498,
    "h": 326.7
  },
  "luminance": 0.21215
}

Semantic roles & 50–950 ramp

primary
#BA59BC
secondary
#A4CDA3
accent
#D25658
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA59BC

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

Preview Lab → · Contrast checker → · Palette generator →

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