#BA5BEE#BA5BEE

#BA5BEE is a light, highly saturated violet. Relative luminance 0.241; OKLCH L 64.9% C 0.220 H 311.6°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#BA5BEE
RGBrgb(186, 91, 238)
HSLhsl(279, 81%, 65%)
HSVhsv(279, 62%, 93%)
CMYKcmyk(21.8%, 61.8%, 0%, 6.7%)
CIE-LABlab(56.18, 61.74, -58.57)
CIE-LCHlch(56.18, 85.11, 316.51°)
OKLaboklab(64.89% 0.1463 -0.1649)
OKLCHoklch(64.89% 0.22 311.6)
XYZxyz(39.4206, 24.0953, 83.4466)
Luminance0.2409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BEE #8FEE5B
analogous
#715BEE #BA5BEE #EE5BD8
triadic
#BA5BEE #EEBA5B #5BEEBA
tetradic
#BA5BEE #EE715B #8FEE5B #5BD8EE
square
#BA5BEE #EE715B #8FEE5B #5BD8EE
split-complementary
#BA5BEE #D8EE5B #5BEE71
monochromatic
#8013BB #A324E8 #BA5BEE #D192F4 #E9CAF9

Accessibility & contrast

On white

3.61
#BA5BEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#BA5BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BEE
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BEE#FFFFFF#000000##000000
##BA5BEE1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1982F3
Deuteranopia (green-blind)
#4E89EB
Tritanopia (blue-blind)
#B4779C
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba5bee;
/* rgb */ color: rgb(186, 91, 238);
/* oklch */ color: oklch(64.9% 0.220 311.6);
Tailwind
colors: {
  custom: {
    50: '#d28ff4',
    500: '#ba5bee',
    950: '#000000',
  },
}
SCSS
$custom: #ba5bee;
$custom-light: #d28ff4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5bee",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 238
  },
  "hsl": {
    "h": 278.776,
    "s": 81.215,
    "l": 64.51
  },
  "oklch": {
    "l": 0.64891,
    "c": 0.22041,
    "h": 311.6
  },
  "luminance": 0.24094
}

Semantic roles & 50–950 ramp

primary
#BA5BEE
secondary
#CBECB9
accent
#DE0854
background
#FDF9FF
surface
#FAF1FE
border
#D3CBD6
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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