#BA58AA#BA58AA

#BA58AA is a mid, vivid purple. Relative luminance 0.203; OKLCH L 60.9% C 0.161 H 334.0°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#BA58AA
RGBrgb(186, 88, 170)
HSLhsl(310, 42%, 54%)
HSVhsv(310, 53%, 73%)
CMYKcmyk(0%, 52.7%, 8.6%, 27.1%)
CIE-LABlab(52.20, 50.19, -26.02)
CIE-LCHlch(52.20, 56.53, 332.59°)
OKLaboklab(60.86% 0.1446 -0.0707)
OKLCHoklch(60.86% 0.161 334)
XYZxyz(30.9951, 20.3229, 40.3126)
Luminance0.2032 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58AA #58BA68
analogous
#9958BA #BA58AA #BA5879
triadic
#BA58AA #AABA58 #58AABA
tetradic
#BA58AA #BA9958 #58BA68 #5879BA
square
#BA58AA #BA9958 #58BA68 #5879BA
split-complementary
#BA58AA #79BA58 #58BA99
monochromatic
#6B2C61 #973E88 #BA58AA #CC83C0 #DEAFD6

Accessibility & contrast

On white

4.15
#BA58AA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#BA58AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58AA
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58AA#FFFFFF#000000##000000
##BA58AA1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5773AD
Deuteranopia (green-blind)
#7382A7
Tritanopia (blue-blind)
#C25E79
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba58aa;
/* rgb */ color: rgb(186, 88, 170);
/* oklch */ color: oklch(60.9% 0.161 334.0);
Tailwind
colors: {
  custom: {
    50: '#d18bc3',
    500: '#ba58aa',
    950: '#000000',
  },
}
SCSS
$custom: #ba58aa;
$custom-light: #d18bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58aa",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 170
  },
  "hsl": {
    "h": 309.796,
    "s": 41.525,
    "l": 53.725
  },
  "oklch": {
    "l": 0.60857,
    "c": 0.16095,
    "h": 334
  },
  "luminance": 0.20321
}

Semantic roles & 50–950 ramp

primary
#BA58AA
secondary
#A2CCA9
accent
#D16B56
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C12
muted
#837D81

Preview Lab

Preview with #BA58AA

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

Preview Lab → · Contrast checker → · Palette generator →

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