#BA54D6#BA54D6

#BA54D6 is a light, highly saturated purple. Relative luminance 0.216; OKLCH L 62.6% C 0.207 H 318.4°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#BA54D6
RGBrgb(186, 84, 214)
HSLhsl(287, 61%, 58%)
HSVhsv(287, 61%, 84%)
CMYKcmyk(13.1%, 60.7%, 0%, 16.1%)
CIE-LABlab(53.64, 60.10, -49.12)
CIE-LCHlch(53.64, 77.62, 320.74°)
OKLaboklab(62.61% 0.1546 -0.1372)
OKLCHoklch(62.61% 0.207 318.4)
XYZxyz(35.5560, 21.6363, 65.9086)
Luminance0.2163 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54D6 #70D654
analogous
#7954D6 #BA54D6 #D654B1
triadic
#BA54D6 #D6BA54 #54D6BA
tetradic
#BA54D6 #D67954 #70D654 #54B1D6
square
#BA54D6 #D67954 #70D654 #54B1D6
split-complementary
#BA54D6 #B1D654 #54D679
monochromatic
#76228E #A02EBF #BA54D6 #CE85E2 #E2B7EE

Accessibility & contrast

On white

3.94
#BA54D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#BA54D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54D6
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54D6#FFFFFF#000000##000000
##BA54D61.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3179DA
Deuteranopia (green-blind)
#5A84D3
Tritanopia (blue-blind)
#BA6A8D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba54d6;
/* rgb */ color: rgb(186, 84, 214);
/* oklch */ color: oklch(62.6% 0.207 318.4);
Tailwind
colors: {
  custom: {
    50: '#d28ae3',
    500: '#ba54d6',
    950: '#000000',
  },
}
SCSS
$custom: #ba54d6;
$custom-light: #d28ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54d6",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 214
  },
  "hsl": {
    "h": 287.077,
    "s": 61.321,
    "l": 58.431
  },
  "oklch": {
    "l": 0.62607,
    "c": 0.20671,
    "h": 318.4
  },
  "luminance": 0.21635
}

Semantic roles & 50–950 ramp

primary
#BA54D6
secondary
#B4DDA9
accent
#E44366
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C15
muted
#837D84

Preview Lab

Preview with #BA54D6

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

Preview Lab → · Contrast checker → · Palette generator →

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