#BA51D3#BA51D3

#BA51D3 is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.1% C 0.208 H 319.5°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BA51D3
RGBrgb(186, 81, 211)
HSLhsl(288, 60%, 57%)
HSVhsv(288, 62%, 83%)
CMYKcmyk(11.8%, 61.6%, 0%, 17.3%)
CIE-LABlab(52.98, 60.88, -48.46)
CIE-LCHlch(52.98, 77.81, 321.48°)
OKLaboklab(62.08% 0.1581 -0.1352)
OKLCHoklch(62.08% 0.208 319.5)
XYZxyz(34.9485, 21.0287, 63.8334)
Luminance0.2103 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51D3 #6AD351
analogous
#7951D3 #BA51D3 #D351AB
triadic
#BA51D3 #D3BA51 #51D3BA
tetradic
#BA51D3 #D37951 #6AD351 #51ABD3
square
#BA51D3 #D37951 #6AD351 #51ABD3
split-complementary
#BA51D3 #ABD351 #51D379
monochromatic
#742287 #9E2FB8 #BA51D3 #CD82DF #E1B3EC

Accessibility & contrast

On white

4.03
#BA51D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#BA51D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51D3
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51D3#FFFFFF#000000##000000
##BA51D31.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F77D7
Deuteranopia (green-blind)
#5A82D0
Tritanopia (blue-blind)
#BA668B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba51d3;
/* rgb */ color: rgb(186, 81, 211);
/* oklch */ color: oklch(62.1% 0.208 319.5);
Tailwind
colors: {
  custom: {
    50: '#d288e1',
    500: '#ba51d3',
    950: '#000000',
  },
}
SCSS
$custom: #ba51d3;
$custom-light: #d288e1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51d3",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 211
  },
  "hsl": {
    "h": 288.462,
    "s": 59.633,
    "l": 57.255
  },
  "oklch": {
    "l": 0.62077,
    "c": 0.20809,
    "h": 319.5
  },
  "luminance": 0.21027
}

Semantic roles & 50–950 ramp

primary
#BA51D3
secondary
#B0DAA6
accent
#E34563
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA51D3

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

Preview Lab → · Contrast checker → · Palette generator →

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