#BA51CC#BA51CC

#BA51CC is a mid, highly saturated purple. Relative luminance 0.207; OKLCH L 61.7% C 0.202 H 321.6°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#BA51CC
RGBrgb(186, 81, 204)
HSLhsl(291, 55%, 56%)
HSVhsv(291, 60%, 80%)
CMYKcmyk(8.8%, 60.3%, 0%, 20%)
CIE-LABlab(52.60, 59.54, -45.06)
CIE-LCHlch(52.60, 74.67, 322.89°)
OKLaboklab(61.68% 0.1579 -0.1254)
OKLCHoklch(61.68% 0.202 321.6)
XYZxyz(34.0900, 20.6853, 59.3120)
Luminance0.2068 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51CC #63CC51
analogous
#7C51CC #BA51CC #CC51A0
triadic
#BA51CC #CCBA51 #51CCBA
tetradic
#BA51CC #CC7C51 #63CC51 #51A0CC
square
#BA51CC #CC7C51 #63CC51 #51A0CC
split-complementary
#BA51CC #A0CC51 #51CC7C
monochromatic
#71257E #9B33AD #BA51CC #CD80DA #E0B0E8

Accessibility & contrast

On white

4.09
#BA51CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#BA51CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51CC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51CC#FFFFFF#000000##000000
##BA51CC1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3776D0
Deuteranopia (green-blind)
#5F82C9
Tritanopia (blue-blind)
#BC6487
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba51cc;
/* rgb */ color: rgb(186, 81, 204);
/* oklch */ color: oklch(61.7% 0.202 321.6);
Tailwind
colors: {
  custom: {
    50: '#d288dc',
    500: '#ba51cc',
    950: '#000000',
  },
}
SCSS
$custom: #ba51cc;
$custom-light: #d288dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51cc",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 291.22,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.6168,
    "c": 0.20163,
    "h": 321.6
  },
  "luminance": 0.20684
}

Semantic roles & 50–950 ramp

primary
#BA51CC
secondary
#AAD6A3
accent
#DE4A5F
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA51CC

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

Preview Lab → · Contrast checker → · Palette generator →

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