#BA55E8#BA55E8

#BA55E8 is a light, highly saturated purple. Relative luminance 0.228; OKLCH L 63.8% C 0.223 H 313.5°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#BA55E8
RGBrgb(186, 85, 232)
HSLhsl(281, 76%, 62%)
HSVhsv(281, 63%, 91%)
CMYKcmyk(19.8%, 63.4%, 0%, 9%)
CIE-LABlab(54.83, 63.25, -57.38)
CIE-LCHlch(54.83, 85.40, 317.78°)
OKLaboklab(63.8% 0.1533 -0.1614)
OKLCHoklch(63.8% 0.223 313.5)
XYZxyz(38.0612, 22.7634, 78.7171)
Luminance0.2276 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA55E8 #83E855
analogous
#7055E8 #BA55E8 #E855CD
triadic
#BA55E8 #E8BA55 #55E8BA
tetradic
#BA55E8 #E87055 #83E855 #55CDE8
square
#BA55E8 #E87055 #83E855 #55CDE8
split-complementary
#BA55E8 #CDE855 #55E870
monochromatic
#7D17AB #A41FE1 #BA55E8 #D08BEF #E6C1F7

Accessibility & contrast

On white

3.78
#BA55E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#BA55E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA55E8
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA55E8#FFFFFF#000000##000000
##BA55E81.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#107EEC
Deuteranopia (green-blind)
#4D86E5
Tritanopia (blue-blind)
#B67197
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba55e8;
/* rgb */ color: rgb(186, 85, 232);
/* oklch */ color: oklch(63.8% 0.223 313.5);
Tailwind
colors: {
  custom: {
    50: '#d28bf0',
    500: '#ba55e8',
    950: '#000000',
  },
}
SCSS
$custom: #ba55e8;
$custom-light: #d28bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba55e8",
  "rgb": {
    "r": 186,
    "g": 85,
    "b": 232
  },
  "hsl": {
    "h": 281.224,
    "s": 76.166,
    "l": 62.157
  },
  "oklch": {
    "l": 0.63797,
    "c": 0.22259,
    "h": 313.5
  },
  "luminance": 0.22762
}

Semantic roles & 50–950 ramp

primary
#BA55E8
secondary
#C2E7B1
accent
#D80D4D
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA55E8

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

Preview Lab → · Contrast checker → · Palette generator →

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