#BA54D9#BA54D9

#BA54D9 is a light, highly saturated purple. Relative luminance 0.218; OKLCH L 62.8% C 0.210 H 317.6°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#BA54D9
RGBrgb(186, 84, 217)
HSLhsl(286, 64%, 59%)
HSVhsv(286, 61%, 85%)
CMYKcmyk(14.3%, 61.3%, 0%, 14.9%)
CIE-LABlab(53.80, 60.69, -50.56)
CIE-LCHlch(53.80, 78.99, 320.21°)
OKLaboklab(62.78% 0.1547 -0.1414)
OKLCHoklch(62.78% 0.21 317.6)
XYZxyz(35.9426, 21.7909, 67.9450)
Luminance0.2179 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54D9 #73D954
analogous
#7854D9 #BA54D9 #D954B6
triadic
#BA54D9 #D9BA54 #54D9BA
tetradic
#BA54D9 #D97854 #73D954 #54B6D9
square
#BA54D9 #D97854 #73D954 #54B6D9
split-complementary
#BA54D9 #B6D954 #54D978
monochromatic
#782092 #A12CC4 #BA54D9 #CE86E4 #E2B8EF

Accessibility & contrast

On white

3.92
#BA54D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#BA54D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54D9
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54D9#FFFFFF#000000##000000
##BA54D91.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D7ADD
Deuteranopia (green-blind)
#5884D6
Tritanopia (blue-blind)
#B96B8F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ba54d9;
/* rgb */ color: rgb(186, 84, 217);
/* oklch */ color: oklch(62.8% 0.210 317.6);
Tailwind
colors: {
  custom: {
    50: '#d28ae5',
    500: '#ba54d9',
    950: '#000000',
  },
}
SCSS
$custom: #ba54d9;
$custom-light: #d28ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54d9",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 217
  },
  "hsl": {
    "h": 286.015,
    "s": 63.636,
    "l": 59.02
  },
  "oklch": {
    "l": 0.62781,
    "c": 0.20955,
    "h": 317.6
  },
  "luminance": 0.2179
}

Semantic roles & 50–950 ramp

primary
#BA54D9
secondary
#B6DFAA
accent
#E74168
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA54D9

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

Preview Lab → · Contrast checker → · Palette generator →

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