#BA51D5#BA51D5

#BA51D5 is a light, highly saturated purple. Relative luminance 0.211; OKLCH L 62.2% C 0.210 H 318.9°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#BA51D5
RGBrgb(186, 81, 213)
HSLhsl(288, 61%, 58%)
HSVhsv(288, 62%, 84%)
CMYKcmyk(12.7%, 62%, 0%, 16.5%)
CIE-LABlab(53.09, 61.26, -49.42)
CIE-LCHlch(53.09, 78.71, 321.11°)
OKLaboklab(62.19% 0.1582 -0.1381)
OKLCHoklch(62.19% 0.21 318.9)
XYZxyz(35.2008, 21.1296, 65.1621)
Luminance0.2113 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51D5 #6CD551
analogous
#7851D5 #BA51D5 #D551AE
triadic
#BA51D5 #D5BA51 #51D5BA
tetradic
#BA51D5 #D57851 #6CD551 #51AED5
square
#BA51D5 #D57851 #6CD551 #51AED5
split-complementary
#BA51D5 #AED551 #51D578
monochromatic
#75218A #9E2DBC #BA51D5 #CE82E1 #E1B4ED

Accessibility & contrast

On white

4.02
#BA51D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#BA51D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51D5
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51D5#FFFFFF#000000##000000
##BA51D51.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C78D9
Deuteranopia (green-blind)
#5982D2
Tritanopia (blue-blind)
#BA678C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba51d5;
/* rgb */ color: rgb(186, 81, 213);
/* oklch */ color: oklch(62.2% 0.210 318.9);
Tailwind
colors: {
  custom: {
    50: '#d288e2',
    500: '#ba51d5',
    950: '#000000',
  },
}
SCSS
$custom: #ba51d5;
$custom-light: #d288e2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51d5",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 213
  },
  "hsl": {
    "h": 287.727,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.62192,
    "c": 0.20995,
    "h": 318.9
  },
  "luminance": 0.21128
}

Semantic roles & 50–950 ramp

primary
#BA51D5
secondary
#B1DBA6
accent
#E44464
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA51D5

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

Preview Lab → · Contrast checker → · Palette generator →

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