#BA5CD7#BA5CD7

#BA5CD7 is a light, vivid purple. Relative luminance 0.230; OKLCH L 63.7% C 0.196 H 317.6°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#BA5CD7
RGBrgb(186, 92, 215)
HSLhsl(286, 61%, 60%)
HSVhsv(286, 57%, 84%)
CMYKcmyk(13.5%, 57.2%, 0%, 15.7%)
CIE-LABlab(55.07, 56.55, -47.40)
CIE-LCHlch(55.07, 73.79, 320.03°)
OKLaboklab(63.67% 0.1447 -0.1323)
OKLCHoklch(63.67% 0.196 317.6)
XYZxyz(36.3409, 23.0011, 66.8022)
Luminance0.2300 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5CD7 #79D75C
analogous
#7D5CD7 #BA5CD7 #D75CB6
triadic
#BA5CD7 #D7BA5C #5CD7BA
tetradic
#BA5CD7 #D77D5C #79D75C #5CB6D7
square
#BA5CD7 #D77D5C #79D75C #5CB6D7
split-complementary
#BA5CD7 #B6D75C #5CD77D
monochromatic
#7A2494 #A230C5 #BA5CD7 #CF8DE3 #E4BEEF

Accessibility & contrast

On white

3.75
#BA5CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#BA5CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5CD7
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5CD7#FFFFFF#000000##000000
##BA5CD71.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E7EDB
Deuteranopia (green-blind)
#6087D4
Tritanopia (blue-blind)
#B97091
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba5cd7;
/* rgb */ color: rgb(186, 92, 215);
/* oklch */ color: oklch(63.7% 0.196 317.6);
Tailwind
colors: {
  custom: {
    50: '#d18fe4',
    500: '#ba5cd7',
    950: '#000000',
  },
}
SCSS
$custom: #ba5cd7;
$custom-light: #d18fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5cd7",
  "rgb": {
    "r": 186,
    "g": 92,
    "b": 215
  },
  "hsl": {
    "h": 285.854,
    "s": 60.591,
    "l": 60.196
  },
  "oklch": {
    "l": 0.63669,
    "c": 0.19607,
    "h": 317.6
  },
  "luminance": 0.23
}

Semantic roles & 50–950 ramp

primary
#BA5CD7
secondary
#BBDFB0
accent
#C81D46
background
#FDF9FE
surface
#FAF1FC
border
#D3CBD5
text
#140D15
muted
#837E84

Preview Lab

Preview with #BA5CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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