#BA55B2#BA55B2

#BA55B2 is a mid, vivid purple. Relative luminance 0.202; OKLCH L 60.8% C 0.172 H 330.6°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#BA55B2
RGBrgb(186, 85, 178)
HSLhsl(305, 42%, 53%)
HSVhsv(305, 54%, 73%)
CMYKcmyk(0%, 54.3%, 4.3%, 27.1%)
CIE-LABlab(52.01, 53.00, -30.99)
CIE-LCHlch(52.01, 61.39, 329.69°)
OKLaboklab(60.83% 0.1502 -0.0848)
OKLCHoklch(60.83% 0.172 330.6)
XYZxyz(31.5339, 20.1525, 44.3397)
Luminance0.2015 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA55B2 #55BA5D
analogous
#8F55BA #BA55B2 #BA5580
triadic
#BA55B2 #B2BA55 #55B2BA
tetradic
#BA55B2 #BA8F55 #55BA5D #5580BA
square
#BA55B2 #BA8F55 #55BA5D #5580BA
split-complementary
#BA55B2 #80BA55 #55BA8F
monochromatic
#6A2B65 #953D8E #BA55B2 #CC81C6 #DDACD9

Accessibility & contrast

On white

4.17
#BA55B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#BA55B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA55B2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA55B2#FFFFFF#000000##000000
##BA55B21.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F73B5
Deuteranopia (green-blind)
#6E81AF
Tritanopia (blue-blind)
#C05E7C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba55b2;
/* rgb */ color: rgb(186, 85, 178);
/* oklch */ color: oklch(60.8% 0.172 330.6);
Tailwind
colors: {
  custom: {
    50: '#d18ac9',
    500: '#ba55b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba55b2;
$custom-light: #d18ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba55b2",
  "rgb": {
    "r": 186,
    "g": 85,
    "b": 178
  },
  "hsl": {
    "h": 304.752,
    "s": 42.259,
    "l": 53.137
  },
  "oklch": {
    "l": 0.6083,
    "c": 0.17246,
    "h": 330.6
  },
  "luminance": 0.2015
}

Semantic roles & 50–950 ramp

primary
#BA55B2
secondary
#A0CBA3
accent
#D26056
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA55B2

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

Preview Lab → · Contrast checker → · Palette generator →

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