#BA5AEC#BA5AEC

#BA5AEC is a light, highly saturated violet. Relative luminance 0.238; OKLCH L 64.6% C 0.220 H 312.1°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#BA5AEC
RGBrgb(186, 90, 236)
HSLhsl(279, 79%, 64%)
HSVhsv(279, 62%, 93%)
CMYKcmyk(21.2%, 61.9%, 0%, 7.5%)
CIE-LABlab(55.90, 61.79, -57.91)
CIE-LCHlch(55.90, 84.69, 316.85°)
OKLaboklab(64.65% 0.1475 -0.163)
OKLCHoklch(64.65% 0.22 312.1)
XYZxyz(39.0435, 23.8086, 81.8794)
Luminance0.2381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5AEC #8CEC5A
analogous
#715AEC #BA5AEC #EC5AD5
triadic
#BA5AEC #ECBA5A #5AECBA
tetradic
#BA5AEC #EC715A #8CEC5A #5AD5EC
square
#BA5AEC #EC715A #8CEC5A #5AD5EC
split-complementary
#BA5AEC #D5EC5A #5AEC71
monochromatic
#7F15B7 #A323E6 #BA5AEC #D191F2 #E8C8F9

Accessibility & contrast

On white

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

On black

5.76
#BA5AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5AEC
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5AEC#FFFFFF#000000##000000
##BA5AEC1.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba5aec;
/* rgb */ color: rgb(186, 90, 236);
/* oklch */ color: oklch(64.6% 0.220 312.1);
Tailwind
colors: {
  custom: {
    50: '#d28ef3',
    500: '#ba5aec',
    950: '#000000',
  },
}
SCSS
$custom: #ba5aec;
$custom-light: #d28ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5aec",
  "rgb": {
    "r": 186,
    "g": 90,
    "b": 236
  },
  "hsl": {
    "h": 279.452,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.64645,
    "c": 0.21978,
    "h": 312.1
  },
  "luminance": 0.23808
}

Semantic roles & 50–950 ramp

primary
#BA5AEC
secondary
#C9EBB7
accent
#DC0A52
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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