#BA51D7#BA51D7

#BA51D7 is a light, highly saturated purple. Relative luminance 0.212; OKLCH L 62.3% C 0.212 H 318.3°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#BA51D7
RGBrgb(186, 81, 215)
HSLhsl(287, 63%, 58%)
HSVhsv(287, 62%, 84%)
CMYKcmyk(13.5%, 62.3%, 0%, 15.7%)
CIE-LABlab(53.20, 61.65, -50.38)
CIE-LCHlch(53.20, 79.61, 320.74°)
OKLaboklab(62.31% 0.1582 -0.1409)
OKLCHoklch(62.31% 0.212 318.3)
XYZxyz(35.4562, 21.2317, 66.5073)
Luminance0.2123 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51D7 #6ED751
analogous
#7751D7 #BA51D7 #D751B1
triadic
#BA51D7 #D7BA51 #51D7BA
tetradic
#BA51D7 #D77751 #6ED751 #51B1D7
square
#BA51D7 #D77751 #6ED751 #51B1D7
split-complementary
#BA51D7 #B1D751 #51D777
monochromatic
#76208D #9F2CBF #BA51D7 #CE83E2 #E1B5EE

Accessibility & contrast

On white

4.00
#BA51D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#BA51D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51D7
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51D7#FFFFFF#000000##000000
##BA51D71.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2978DB
Deuteranopia (green-blind)
#5782D4
Tritanopia (blue-blind)
#BA688D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba51d7;
/* rgb */ color: rgb(186, 81, 215);
/* oklch */ color: oklch(62.3% 0.212 318.3);
Tailwind
colors: {
  custom: {
    50: '#d288e4',
    500: '#ba51d7',
    950: '#000000',
  },
}
SCSS
$custom: #ba51d7;
$custom-light: #d288e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51d7",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 287.015,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.62308,
    "c": 0.21182,
    "h": 318.3
  },
  "luminance": 0.2123
}

Semantic roles & 50–950 ramp

primary
#BA51D7
secondary
#B3DDA7
accent
#E64266
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C15
muted
#837D84

Preview Lab

Preview with #BA51D7

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

Preview Lab → · Contrast checker → · Palette generator →

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