#BA58BF#BA58BF

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

Color values

HEX#BA58BF
RGBrgb(186, 88, 191)
HSLhsl(297, 45%, 55%)
HSVhsv(297, 54%, 75%)
CMYKcmyk(2.6%, 53.9%, 0%, 25.1%)
CIE-LABlab(53.15, 53.88, -36.73)
CIE-LCHlch(53.15, 65.21, 325.71°)
OKLaboklab(61.87% 0.1479 -0.1013)
OKLCHoklch(61.87% 0.179 325.6)
XYZxyz(33.1427, 21.1819, 51.6229)
Luminance0.2118 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58BF #5DBF58
analogous
#8658BF #BA58BF #BF5891
triadic
#BA58BF #BFBA58 #58BFBA
tetradic
#BA58BF #BF8658 #5DBF58 #5891BF
square
#BA58BF #BF8658 #5DBF58 #5891BF
split-complementary
#BA58BF #91BF58 #58BF86
monochromatic
#6E2B71 #993C9D #BA58BF #CC84D0 #DFB0E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA58BF#FFFFFF#000000##000000
##BA58BF1.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)
#4B77C2
Deuteranopia (green-blind)
#6B83BC
Tritanopia (blue-blind)
#BE6583
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba58bf;
/* rgb */ color: rgb(186, 88, 191);
/* oklch */ color: oklch(61.9% 0.179 325.6);
Tailwind
colors: {
  custom: {
    50: '#d18cd2',
    500: '#ba58bf',
    950: '#000000',
  },
}
SCSS
$custom: #ba58bf;
$custom-light: #d18cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58bf",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 191
  },
  "hsl": {
    "h": 297.087,
    "s": 44.589,
    "l": 54.706
  },
  "oklch": {
    "l": 0.61865,
    "c": 0.17928,
    "h": 325.6
  },
  "luminance": 0.2118
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA58BF

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

Preview Lab → · Contrast checker → · Palette generator →

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