#BA55E6#BA55E6

#BA55E6 is a light, highly saturated purple. Relative luminance 0.226; OKLCH L 63.7% C 0.221 H 314.0°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#BA55E6
RGBrgb(186, 85, 230)
HSLhsl(282, 74%, 62%)
HSVhsv(282, 63%, 90%)
CMYKcmyk(19.1%, 63%, 0%, 9.8%)
CIE-LABlab(54.71, 62.84, -56.45)
CIE-LCHlch(54.71, 84.47, 318.07°)
OKLaboklab(63.68% 0.1534 -0.1586)
OKLCHoklch(63.68% 0.221 314)
XYZxyz(37.7787, 22.6504, 77.2295)
Luminance0.2265 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA55E6 #81E655
analogous
#7255E6 #BA55E6 #E655CA
triadic
#BA55E6 #E6BA55 #55E6BA
tetradic
#BA55E6 #E67255 #81E655 #55CAE6
square
#BA55E6 #E67255 #81E655 #55CAE6
split-complementary
#BA55E6 #CAE655 #55E672
monochromatic
#7C19A8 #A421DD #BA55E6 #D08AEE #E5C0F6

Accessibility & contrast

On white

3.80
#BA55E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#BA55E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA55E6
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA55E6#FFFFFF#000000##000000
##BA55E61.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#167DEA
Deuteranopia (green-blind)
#4F85E3
Tritanopia (blue-blind)
#B67096
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba55e6;
/* rgb */ color: rgb(186, 85, 230);
/* oklch */ color: oklch(63.7% 0.221 314.0);
Tailwind
colors: {
  custom: {
    50: '#d28bef',
    500: '#ba55e6',
    950: '#000000',
  },
}
SCSS
$custom: #ba55e6;
$custom-light: #d28bef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba55e6",
  "rgb": {
    "r": 186,
    "g": 85,
    "b": 230
  },
  "hsl": {
    "h": 281.793,
    "s": 74.359,
    "l": 61.765
  },
  "oklch": {
    "l": 0.63675,
    "c": 0.22066,
    "h": 314
  },
  "luminance": 0.22649
}

Semantic roles & 50–950 ramp

primary
#BA55E6
secondary
#C1E6B1
accent
#D60F4C
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA55E6

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

Preview Lab → · Contrast checker → · Palette generator →

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