#BA54DF#BA54DF

#BA54DF is a light, highly saturated purple. Relative luminance 0.221; OKLCH L 63.1% C 0.215 H 315.9°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#BA54DF
RGBrgb(186, 84, 223)
HSLhsl(284, 68%, 60%)
HSVhsv(284, 62%, 87%)
CMYKcmyk(16.6%, 62.3%, 0%, 12.5%)
CIE-LABlab(54.14, 61.88, -53.41)
CIE-LCHlch(54.14, 81.74, 319.20°)
OKLaboklab(63.13% 0.1547 -0.1497)
OKLCHoklch(63.13% 0.215 315.9)
XYZxyz(36.7373, 22.1088, 72.1300)
Luminance0.2211 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54DF #79DF54
analogous
#7554DF #BA54DF #DF54BE
triadic
#BA54DF #DFBA54 #54DFBA
tetradic
#BA54DF #DF7554 #79DF54 #54BEDF
square
#BA54DF #DF7554 #79DF54 #54BEDF
split-complementary
#BA54DF #BEDF54 #54DF75
monochromatic
#7A1D9C #A227CF #BA54DF #CF88E9 #E4BBF2

Accessibility & contrast

On white

3.87
#BA54DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#BA54DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54DF
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54DF#FFFFFF#000000##000000
##BA54DF1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#237BE3
Deuteranopia (green-blind)
#5484DC
Tritanopia (blue-blind)
#B86D92
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ba54df;
/* rgb */ color: rgb(186, 84, 223);
/* oklch */ color: oklch(63.1% 0.215 315.9);
Tailwind
colors: {
  custom: {
    50: '#d28aea',
    500: '#ba54df',
    950: '#000000',
  },
}
SCSS
$custom: #ba54df;
$custom-light: #d28aea;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54df",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 223
  },
  "hsl": {
    "h": 284.029,
    "s": 68.473,
    "l": 60.196
  },
  "oklch": {
    "l": 0.63134,
    "c": 0.21527,
    "h": 315.9
  },
  "luminance": 0.22107
}

Semantic roles & 50–950 ramp

primary
#BA54DF
secondary
#BBE2AD
accent
#D01547
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA54DF

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

Preview Lab → · Contrast checker → · Palette generator →

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