#BA5ED8#BA5ED8

#BA5ED8 is a light, vivid purple. Relative luminance 0.234; OKLCH L 64.0% C 0.194 H 317.1°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#BA5ED8
RGBrgb(186, 94, 216)
HSLhsl(285, 61%, 61%)
HSVhsv(285, 56%, 85%)
CMYKcmyk(13.9%, 56.5%, 0%, 15.3%)
CIE-LABlab(55.49, 55.78, -47.32)
CIE-LCHlch(55.49, 73.15, 319.70°)
OKLaboklab(63.99% 0.1422 -0.132)
OKLCHoklch(63.99% 0.194 317.1)
XYZxyz(36.6453, 23.4037, 67.5395)
Luminance0.2340 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5ED8 #7CD85E
analogous
#7D5ED8 #BA5ED8 #D85EB9
triadic
#BA5ED8 #D8BA5E #5ED8BA
tetradic
#BA5ED8 #D87D5E #7CD85E #5EB9D8
square
#BA5ED8 #D87D5E #7CD85E #5EB9D8
split-complementary
#BA5ED8 #B9D85E #5ED87D
monochromatic
#7B2597 #A331C8 #BA5ED8 #CF8FE4 #E4C1F0

Accessibility & contrast

On white

3.70
#BA5ED8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#BA5ED8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5ED8
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5ED8#FFFFFF#000000##000000
##BA5ED81.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#407FDC
Deuteranopia (green-blind)
#6188D5
Tritanopia (blue-blind)
#B97292
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba5ed8;
/* rgb */ color: rgb(186, 94, 216);
/* oklch */ color: oklch(64.0% 0.194 317.1);
Tailwind
colors: {
  custom: {
    50: '#d190e4',
    500: '#ba5ed8',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ed8;
$custom-light: #d190e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ed8",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 216
  },
  "hsl": {
    "h": 285.246,
    "s": 61,
    "l": 60.784
  },
  "oklch": {
    "l": 0.63988,
    "c": 0.19407,
    "h": 317.1
  },
  "luminance": 0.23402
}

Semantic roles & 50–950 ramp

primary
#BA5ED8
secondary
#BDE0B2
accent
#C91D47
background
#FDF9FE
surface
#FAF1FC
border
#D3CBD5
text
#140D16
muted
#837E84

Preview Lab

Preview with #BA5ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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