#BA58D9#BA58D9

#BA58D9 is a light, highly saturated purple. Relative luminance 0.224; OKLCH L 63.3% C 0.204 H 317.3°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#BA58D9
RGBrgb(186, 88, 217)
HSLhsl(286, 63%, 60%)
HSVhsv(286, 59%, 85%)
CMYKcmyk(14.3%, 59.4%, 0%, 14.9%)
CIE-LABlab(54.48, 58.85, -49.48)
CIE-LCHlch(54.48, 76.88, 319.94°)
OKLaboklab(63.27% 0.1498 -0.1383)
OKLCHoklch(63.27% 0.204 317.3)
XYZxyz(36.2620, 22.4297, 68.0514)
Luminance0.2243 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58D9 #77D958
analogous
#7958D9 #BA58D9 #D958B8
triadic
#BA58D9 #D9BA58 #58D9BA
tetradic
#BA58D9 #D97958 #77D958 #58B8D9
square
#BA58D9 #D97958 #77D958 #58B8D9
split-complementary
#BA58D9 #B8D958 #58D979
monochromatic
#792295 #A22DC7 #BA58D9 #CF8AE4 #E3BCF0

Accessibility & contrast

On white

3.83
#BA58D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#BA58D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58D9
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58D9#FFFFFF#000000##000000
##BA58D91.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#357CDD
Deuteranopia (green-blind)
#5C85D6
Tritanopia (blue-blind)
#B96E90
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ba58d9;
/* rgb */ color: rgb(186, 88, 217);
/* oklch */ color: oklch(63.3% 0.204 317.3);
Tailwind
colors: {
  custom: {
    50: '#d28ce5',
    500: '#ba58d9',
    950: '#000000',
  },
}
SCSS
$custom: #ba58d9;
$custom-light: #d28ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58d9",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 217
  },
  "hsl": {
    "h": 285.581,
    "s": 62.927,
    "l": 59.804
  },
  "oklch": {
    "l": 0.63271,
    "c": 0.20387,
    "h": 317.3
  },
  "luminance": 0.22428
}

Semantic roles & 50–950 ramp

primary
#BA58D9
secondary
#B9DFAD
accent
#E64269
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA58D9

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

Preview Lab → · Contrast checker → · Palette generator →

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