#BA5BEA#BA5BEA

#BA5BEA is a light, highly saturated violet. Relative luminance 0.239; OKLCH L 64.6% C 0.216 H 312.5°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#BA5BEA
RGBrgb(186, 91, 234)
HSLhsl(280, 77%, 64%)
HSVhsv(280, 61%, 92%)
CMYKcmyk(20.5%, 61.1%, 0%, 8.2%)
CIE-LABlab(55.95, 60.90, -56.71)
CIE-LCHlch(55.95, 83.22, 317.04°)
OKLaboklab(64.65% 0.1463 -0.1594)
OKLCHoklch(64.65% 0.216 312.5)
XYZxyz(38.8394, 23.8628, 80.3859)
Luminance0.2386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BEA #8BEA5B
analogous
#725BEA #BA5BEA #EA5BD2
triadic
#BA5BEA #EABA5B #5BEABA
tetradic
#BA5BEA #EA725B #8BEA5B #5BD2EA
square
#BA5BEA #EA725B #8BEA5B #5BD2EA
split-complementary
#BA5BEA #D2EA5B #5BEA72
monochromatic
#7F17B4 #A325E3 #BA5BEA #D191F1 #E8C8F8

Accessibility & contrast

On white

3.64
#BA5BEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#BA5BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BEA
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BEA#FFFFFF#000000##000000
##BA5BEA1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2281EE
Deuteranopia (green-blind)
#5188E7
Tritanopia (blue-blind)
#B5769A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba5bea;
/* rgb */ color: rgb(186, 91, 234);
/* oklch */ color: oklch(64.6% 0.216 312.5);
Tailwind
colors: {
  custom: {
    50: '#d28ef1',
    500: '#ba5bea',
    950: '#000000',
  },
}
SCSS
$custom: #ba5bea;
$custom-light: #d28ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5bea",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 234
  },
  "hsl": {
    "h": 279.86,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.64647,
    "c": 0.2164,
    "h": 312.5
  },
  "luminance": 0.23862
}

Semantic roles & 50–950 ramp

primary
#BA5BEA
secondary
#C8EAB7
accent
#DA0C51
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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