#BA54E7#BA54E7

#BA54E7 is a light, highly saturated purple. Relative luminance 0.225; OKLCH L 63.6% C 0.223 H 313.9°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#BA54E7
RGBrgb(186, 84, 231)
HSLhsl(282, 75%, 62%)
HSVhsv(282, 64%, 91%)
CMYKcmyk(19.5%, 63.6%, 0%, 9.4%)
CIE-LABlab(54.61, 63.49, -57.18)
CIE-LCHlch(54.61, 85.44, 318.00°)
OKLaboklab(63.62% 0.1545 -0.1608)
OKLCHoklch(63.62% 0.223 313.9)
XYZxyz(37.8414, 22.5504, 77.9451)
Luminance0.2255 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54E7 #81E754
analogous
#7154E7 #BA54E7 #E754CA
triadic
#BA54E7 #E7BA54 #54E7BA
tetradic
#BA54E7 #E77154 #81E754 #54CAE7
square
#BA54E7 #E77154 #81E754 #54CAE7
split-complementary
#BA54E7 #CAE754 #54E771
monochromatic
#7C18A9 #A41FDF #BA54E7 #D08AEF #E5BFF6

Accessibility & contrast

On white

3.81
#BA54E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#BA54E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54E7
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54E7#FFFFFF#000000##000000
##BA54E71.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0E7DEB
Deuteranopia (green-blind)
#4D85E4
Tritanopia (blue-blind)
#B67096
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba54e7;
/* rgb */ color: rgb(186, 84, 231);
/* oklch */ color: oklch(63.6% 0.223 313.9);
Tailwind
colors: {
  custom: {
    50: '#d28aef',
    500: '#ba54e7',
    950: '#000000',
  },
}
SCSS
$custom: #ba54e7;
$custom-light: #d28aef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54e7",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 231
  },
  "hsl": {
    "h": 281.633,
    "s": 75.385,
    "l": 61.765
  },
  "oklch": {
    "l": 0.63619,
    "c": 0.22296,
    "h": 313.9
  },
  "luminance": 0.22549
}

Semantic roles & 50–950 ramp

primary
#BA54E7
secondary
#C1E7B0
accent
#D80E4C
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA54E7

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

Preview Lab → · Contrast checker → · Palette generator →

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