#BA51E5#BA51E5

#BA51E5 is a light, highly saturated purple. Relative luminance 0.220; OKLCH L 63.1% C 0.225 H 314.6°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#BA51E5
RGBrgb(186, 81, 229)
HSLhsl(283, 74%, 61%)
HSVhsv(283, 65%, 90%)
CMYKcmyk(18.8%, 64.6%, 0%, 10.2%)
CIE-LABlab(54.01, 64.41, -57.01)
CIE-LCHlch(54.01, 86.02, 318.49°)
OKLaboklab(63.15% 0.1579 -0.1603)
OKLCHoklch(63.15% 0.225 314.6)
XYZxyz(37.3327, 21.9823, 76.3900)
Luminance0.2198 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51E5 #7CE551
analogous
#7051E5 #BA51E5 #E551C6
triadic
#BA51E5 #E5BA51 #51E5BA
tetradic
#BA51E5 #E57051 #7CE551 #51C6E5
square
#BA51E5 #E57051 #7CE551 #51C6E5
split-complementary
#BA51E5 #C6E551 #51E570
monochromatic
#7B18A3 #A320D8 #BA51E5 #CF86ED #E4BBF5

Accessibility & contrast

On white

3.89
#BA51E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#BA51E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51E5
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51E5#FFFFFF#000000##000000
##BA51E51.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#037BE9
Deuteranopia (green-blind)
#4C84E2
Tritanopia (blue-blind)
#B66D94
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ba51e5;
/* rgb */ color: rgb(186, 81, 229);
/* oklch */ color: oklch(63.1% 0.225 314.6);
Tailwind
colors: {
  custom: {
    50: '#d289ee',
    500: '#ba51e5',
    950: '#000000',
  },
}
SCSS
$custom: #ba51e5;
$custom-light: #d289ee;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51e5",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 282.568,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.6315,
    "c": 0.225,
    "h": 314.6
  },
  "luminance": 0.21981
}

Semantic roles & 50–950 ramp

primary
#BA51E5
secondary
#BDE5AD
accent
#D60F49
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA51E5

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

Preview Lab → · Contrast checker → · Palette generator →

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