#BA55BB#BA55BB

#BA55BB is a mid, vivid purple. Relative luminance 0.205; OKLCH L 61.3% C 0.180 H 327.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#BA55BB
RGBrgb(186, 85, 187)
HSLhsl(299, 43%, 53%)
HSVhsv(299, 55%, 73%)
CMYKcmyk(0.5%, 54.5%, 0%, 26.7%)
CIE-LABlab(52.43, 54.58, -35.55)
CIE-LCHlch(52.43, 65.14, 326.92°)
OKLaboklab(61.27% 0.1514 -0.0979)
OKLCHoklch(61.27% 0.18 327.1)
XYZxyz(32.4673, 20.5259, 49.2558)
Luminance0.2052 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA55BB #56BB55
analogous
#8755BB #BA55BB #BB5589
triadic
#BA55BB #BBBA55 #55BBBA
tetradic
#BA55BB #BB8755 #56BB55 #5589BB
square
#BA55BB #BB8755 #56BB55 #5589BB
split-complementary
#BA55BB #89BB55 #55BB87
monochromatic
#6A2B6B #963C97 #BA55BB #CC81CC #DDACDE

Accessibility & contrast

On white

4.11
#BA55BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#BA55BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA55BB
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA55BB#FFFFFF#000000##000000
##BA55BB1.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A75BE
Deuteranopia (green-blind)
#6A82B8
Tritanopia (blue-blind)
#BF6180
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba55bb;
/* rgb */ color: rgb(186, 85, 187);
/* oklch */ color: oklch(61.3% 0.180 327.1);
Tailwind
colors: {
  custom: {
    50: '#d18ad0',
    500: '#ba55bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba55bb;
$custom-light: #d18ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba55bb",
  "rgb": {
    "r": 186,
    "g": 85,
    "b": 187
  },
  "hsl": {
    "h": 299.412,
    "s": 42.857,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61273,
    "c": 0.18031,
    "h": 327.1
  },
  "luminance": 0.20524
}

Semantic roles & 50–950 ramp

primary
#BA55BB
secondary
#A0CCA0
accent
#D35556
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA55BB

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

Preview Lab → · Contrast checker → · Palette generator →

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