#BA5BED#BA5BED

#BA5BED is a light, highly saturated violet. Relative luminance 0.240; OKLCH L 64.8% C 0.219 H 311.8°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#BA5BED
RGBrgb(186, 91, 237)
HSLhsl(279, 80%, 64%)
HSVhsv(279, 62%, 93%)
CMYKcmyk(21.5%, 61.6%, 0%, 7.1%)
CIE-LABlab(56.12, 61.53, -58.11)
CIE-LCHlch(56.12, 84.63, 316.64°)
OKLaboklab(64.83% 0.1463 -0.1635)
OKLCHoklch(64.83% 0.219 311.8)
XYZxyz(39.2741, 24.0367, 82.6750)
Luminance0.2404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BED #8EED5B
analogous
#715BED #BA5BED #ED5BD7
triadic
#BA5BED #EDBA5B #5BEDBA
tetradic
#BA5BED #ED715B #8EED5B #5BD7ED
square
#BA5BED #ED715B #8EED5B #5BD7ED
split-complementary
#BA5BED #D7ED5B #5BED71
monochromatic
#8014B9 #A324E7 #BA5BED #D192F3 #E8C9F9

Accessibility & contrast

On white

3.62
#BA5BED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#BA5BED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BED
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BED#FFFFFF#000000##000000
##BA5BED1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C82F2
Deuteranopia (green-blind)
#4F88EA
Tritanopia (blue-blind)
#B4779C
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba5bed;
/* rgb */ color: rgb(186, 91, 237);
/* oklch */ color: oklch(64.8% 0.219 311.8);
Tailwind
colors: {
  custom: {
    50: '#d28ef3',
    500: '#ba5bed',
    950: '#000000',
  },
}
SCSS
$custom: #ba5bed;
$custom-light: #d28ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5bed",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 237
  },
  "hsl": {
    "h": 279.041,
    "s": 80.22,
    "l": 64.314
  },
  "oklch": {
    "l": 0.64829,
    "c": 0.2194,
    "h": 311.8
  },
  "luminance": 0.24036
}

Semantic roles & 50–950 ramp

primary
#BA5BED
secondary
#CAEBB9
accent
#DD0953
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5BED

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

Preview Lab → · Contrast checker → · Palette generator →

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