#BA55AA#BA55AA

#BA55AA is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.5% C 0.166 H 333.9°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#BA55AA
RGBrgb(186, 85, 170)
HSLhsl(310, 42%, 53%)
HSVhsv(310, 54%, 73%)
CMYKcmyk(0%, 54.3%, 8.6%, 27.1%)
CIE-LABlab(51.66, 51.64, -26.87)
CIE-LCHlch(51.66, 58.21, 332.51°)
OKLaboklab(60.46% 0.1488 -0.073)
OKLCHoklch(60.46% 0.166 333.9)
XYZxyz(30.7539, 19.8405, 40.2322)
Luminance0.1984 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA55AA #55BA65
analogous
#9755BA #BA55AA #BA5577
triadic
#BA55AA #AABA55 #55AABA
tetradic
#BA55AA #BA9755 #55BA65 #5577BA
square
#BA55AA #BA9755 #55BA65 #5577BA
split-complementary
#BA55AA #77BA55 #55BA97
monochromatic
#6A2B60 #953D87 #BA55AA #CC81C0 #DDACD6

Accessibility & contrast

On white

4.23
#BA55AA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#BA55AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA55AA
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA55AA#FFFFFF#000000##000000
##BA55AA1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5472AD
Deuteranopia (green-blind)
#7280A7
Tritanopia (blue-blind)
#C25B78
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba55aa;
/* rgb */ color: rgb(186, 85, 170);
/* oklch */ color: oklch(60.5% 0.166 333.9);
Tailwind
colors: {
  custom: {
    50: '#d189c3',
    500: '#ba55aa',
    950: '#000000',
  },
}
SCSS
$custom: #ba55aa;
$custom-light: #d189c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba55aa",
  "rgb": {
    "r": 186,
    "g": 85,
    "b": 170
  },
  "hsl": {
    "h": 309.505,
    "s": 42.259,
    "l": 53.137
  },
  "oklch": {
    "l": 0.60455,
    "c": 0.16577,
    "h": 333.9
  },
  "luminance": 0.19838
}

Semantic roles & 50–950 ramp

primary
#BA55AA
secondary
#A0CBA7
accent
#D26956
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C12
muted
#837D81

Preview Lab

Preview with #BA55AA

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

Preview Lab → · Contrast checker → · Palette generator →

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