#BA5BEC#BA5BEC

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

Color values

HEX#BA5BEC
RGBrgb(186, 91, 236)
HSLhsl(279, 79%, 64%)
HSVhsv(279, 61%, 93%)
CMYKcmyk(21.2%, 61.4%, 0%, 7.5%)
CIE-LABlab(56.07, 61.32, -57.64)
CIE-LCHlch(56.07, 84.16, 316.77°)
OKLaboklab(64.77% 0.1463 -0.1622)
OKLCHoklch(64.77% 0.218 312.1)
XYZxyz(39.1284, 23.9784, 81.9077)
Luminance0.2398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BEC #8DEC5B
analogous
#725BEC #BA5BEC #EC5BD6
triadic
#BA5BEC #ECBA5B #5BECBA
tetradic
#BA5BEC #EC725B #8DEC5B #5BD6EC
square
#BA5BEC #EC725B #8DEC5B #5BD6EC
split-complementary
#BA5BEC #D6EC5B #5BEC72
monochromatic
#7F15B7 #A324E6 #BA5BEC #D192F2 #E8C9F9

Accessibility & contrast

On white

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

On black

5.80
#BA5BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BEC
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BEC#FFFFFF#000000##000000
##BA5BEC1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E82F0
Deuteranopia (green-blind)
#4F88E9
Tritanopia (blue-blind)
#B4769B
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba5bec;
/* rgb */ color: rgb(186, 91, 236);
/* oklch */ color: oklch(64.8% 0.218 312.1);
Tailwind
colors: {
  custom: {
    50: '#d28ef3',
    500: '#ba5bec',
    950: '#000000',
  },
}
SCSS
$custom: #ba5bec;
$custom-light: #d28ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5bec",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 236
  },
  "hsl": {
    "h": 279.31,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.64768,
    "c": 0.2184,
    "h": 312.1
  },
  "luminance": 0.23977
}

Semantic roles & 50–950 ramp

primary
#BA5BEC
secondary
#CAEBB8
accent
#DC0A52
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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