#BA5BEB#BA5BEB

#BA5BEB is a light, highly saturated violet. Relative luminance 0.239; OKLCH L 64.7% C 0.217 H 312.3°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#BA5BEB
RGBrgb(186, 91, 235)
HSLhsl(280, 78%, 64%)
HSVhsv(280, 61%, 92%)
CMYKcmyk(20.9%, 61.3%, 0%, 7.8%)
CIE-LABlab(56.01, 61.11, -57.18)
CIE-LCHlch(56.01, 83.69, 316.91°)
OKLaboklab(64.71% 0.1463 -0.1608)
OKLCHoklch(64.71% 0.217 312.3)
XYZxyz(38.9835, 23.9204, 81.1447)
Luminance0.2392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BEB #8CEB5B
analogous
#725BEB #BA5BEB #EB5BD4
triadic
#BA5BEB #EBBA5B #5BEBBA
tetradic
#BA5BEB #EB725B #8CEB5B #5BD4EB
square
#BA5BEB #EB725B #8CEB5B #5BD4EB
split-complementary
#BA5BEB #D4EB5B #5BEB72
monochromatic
#7F16B5 #A324E4 #BA5BEB #D192F2 #E8C8F8

Accessibility & contrast

On white

3.63
#BA5BEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#BA5BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BEB
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BEB#FFFFFF#000000##000000
##BA5BEB1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2081EF
Deuteranopia (green-blind)
#5088E8
Tritanopia (blue-blind)
#B5769B
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba5beb;
/* rgb */ color: rgb(186, 91, 235);
/* oklch */ color: oklch(64.7% 0.217 312.3);
Tailwind
colors: {
  custom: {
    50: '#d28ef2',
    500: '#ba5beb',
    950: '#000000',
  },
}
SCSS
$custom: #ba5beb;
$custom-light: #d28ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5beb",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 235
  },
  "hsl": {
    "h": 279.583,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.64708,
    "c": 0.2174,
    "h": 312.3
  },
  "luminance": 0.23919
}

Semantic roles & 50–950 ramp

primary
#BA5BEB
secondary
#C9EAB8
accent
#DB0B52
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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