#BA58BB#BA58BB

#BA58BB is a mid, vivid purple. Relative luminance 0.210; OKLCH L 61.7% C 0.176 H 327.1°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#BA58BB
RGBrgb(186, 88, 187)
HSLhsl(299, 42%, 54%)
HSVhsv(299, 53%, 73%)
CMYKcmyk(0.5%, 52.9%, 0%, 26.7%)
CIE-LABlab(52.96, 53.15, -34.72)
CIE-LCHlch(52.96, 63.48, 326.84°)
OKLaboklab(61.66% 0.1474 -0.0955)
OKLCHoklch(61.66% 0.176 327.1)
XYZxyz(32.7085, 21.0083, 49.3362)
Luminance0.2101 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58BB #59BB58
analogous
#8958BB #BA58BB #BB588B
triadic
#BA58BB #BBBA58 #58BBBA
tetradic
#BA58BB #BB8958 #59BB58 #588BBB
square
#BA58BB #BB8958 #59BB58 #588BBB
split-complementary
#BA58BB #8BBB58 #58BB89
monochromatic
#6C2C6C #973E98 #BA58BB #CC83CD #DEAFDE

Accessibility & contrast

On white

4.04
#BA58BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#BA58BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58BB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58BB#FFFFFF#000000##000000
##BA58BB1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E76BE
Deuteranopia (green-blind)
#6C83B8
Tritanopia (blue-blind)
#BF6381
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba58bb;
/* rgb */ color: rgb(186, 88, 187);
/* oklch */ color: oklch(61.7% 0.176 327.1);
Tailwind
colors: {
  custom: {
    50: '#d18cd0',
    500: '#ba58bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba58bb;
$custom-light: #d18cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58bb",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 187
  },
  "hsl": {
    "h": 299.394,
    "s": 42.128,
    "l": 53.922
  },
  "oklch": {
    "l": 0.61664,
    "c": 0.17564,
    "h": 327.1
  },
  "luminance": 0.21006
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA58BB

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

Preview Lab → · Contrast checker → · Palette generator →

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