#BA5CD5#BA5CD5

#BA5CD5 is a light, vivid purple. Relative luminance 0.229; OKLCH L 63.6% C 0.194 H 318.2°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#BA5CD5
RGBrgb(186, 92, 213)
HSLhsl(287, 59%, 60%)
HSVhsv(287, 57%, 84%)
CMYKcmyk(12.7%, 56.8%, 0%, 16.5%)
CIE-LABlab(54.97, 56.15, -46.44)
CIE-LCHlch(54.97, 72.87, 320.41°)
OKLaboklab(63.56% 0.1446 -0.1294)
OKLCHoklch(63.56% 0.194 318.2)
XYZxyz(36.0854, 22.8989, 65.4570)
Luminance0.2290 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5CD5 #77D55C
analogous
#7E5CD5 #BA5CD5 #D55CB3
triadic
#BA5CD5 #D5BA5C #5CD5BA
tetradic
#BA5CD5 #D57E5C #77D55C #5CB3D5
square
#BA5CD5 #D57E5C #77D55C #5CB3D5
split-complementary
#BA5CD5 #B3D55C #5CD57E
monochromatic
#792591 #A232C2 #BA5CD5 #CF8DE2 #E3BDEE

Accessibility & contrast

On white

3.76
#BA5CD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#BA5CD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5CD5
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5CD5#FFFFFF#000000##000000
##BA5CD51.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#407DD9
Deuteranopia (green-blind)
#6187D2
Tritanopia (blue-blind)
#BA6F90
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba5cd5;
/* rgb */ color: rgb(186, 92, 213);
/* oklch */ color: oklch(63.6% 0.194 318.2);
Tailwind
colors: {
  custom: {
    50: '#d18fe2',
    500: '#ba5cd5',
    950: '#000000',
  },
}
SCSS
$custom: #ba5cd5;
$custom-light: #d18fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5cd5",
  "rgb": {
    "r": 186,
    "g": 92,
    "b": 213
  },
  "hsl": {
    "h": 286.612,
    "s": 59.024,
    "l": 59.804
  },
  "oklch": {
    "l": 0.63558,
    "c": 0.19409,
    "h": 318.2
  },
  "luminance": 0.22897
}

Semantic roles & 50–950 ramp

primary
#BA5CD5
secondary
#B9DEAF
accent
#E24669
background
#FDF9FD
surface
#FAF1FB
border
#D3CBD4
text
#140D15
muted
#837E83

Preview Lab

Preview with #BA5CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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