#BA59BB#BA59BB

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

Color values

HEX#BA59BB
RGBrgb(186, 89, 187)
HSLhsl(299, 42%, 54%)
HSVhsv(299, 52%, 73%)
CMYKcmyk(0.5%, 52.4%, 0%, 26.7%)
CIE-LABlab(53.14, 52.67, -34.44)
CIE-LCHlch(53.14, 62.93, 326.82°)
OKLaboklab(61.8% 0.1461 -0.0947)
OKLCHoklch(61.8% 0.174 327)
XYZxyz(32.7911, 21.1736, 49.3638)
Luminance0.2117 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA59BB #5ABB59
analogous
#8959BB #BA59BB #BB598B
triadic
#BA59BB #BBBA59 #59BBBA
tetradic
#BA59BB #BB8959 #5ABB59 #598BBB
square
#BA59BB #BB8959 #5ABB59 #598BBB
split-complementary
#BA59BB #8BBB59 #59BB89
monochromatic
#6C2D6D #973E98 #BA59BB #CC84CD #DEB0DF

Accessibility & contrast

On white

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

On black

5.23
#BA59BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA59BB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA59BB#FFFFFF#000000##000000
##BA59BB1.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba59bb;
/* rgb */ color: rgb(186, 89, 187);
/* oklch */ color: oklch(61.8% 0.174 327.0);
Tailwind
colors: {
  custom: {
    50: '#d18cd0',
    500: '#ba59bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba59bb;
$custom-light: #d18cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba59bb",
  "rgb": {
    "r": 186,
    "g": 89,
    "b": 187
  },
  "hsl": {
    "h": 299.388,
    "s": 41.88,
    "l": 54.118
  },
  "oklch": {
    "l": 0.61797,
    "c": 0.17407,
    "h": 327
  },
  "luminance": 0.21172
}

Semantic roles & 50–950 ramp

primary
#BA59BB
secondary
#A3CDA3
accent
#D25657
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA59BB

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

Preview Lab → · Contrast checker → · Palette generator →

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